onedrive: init #18

Merged
DashieTM merged 3 commits from main into main 2025-05-10 14:03:52 +02:00
2 changed files with 24 additions and 0 deletions
Showing only changes of commit 67190c1546 - Show all commits

View file

@ -28,6 +28,7 @@
./mime.nix ./mime.nix
./ncspot.nix ./ncspot.nix
./nextcloud.nix ./nextcloud.nix
./onedrive.nix
./oxi ./oxi
./piper.nix ./piper.nix
./plymouth.nix ./plymouth.nix

View file

@ -0,0 +1,23 @@
{
lib,
config,
options,
...
}: {
options.mods = {
onedrive = {
enable = lib.mkOption {
default = false;
example = true;
type = lib.types.bool;
description = "Enable onedrive program and service";
};
};
};
config = lib.mkIf config.mods.onedrive.enable (
lib.optionalAttrs (options ? environment) {
services.onedrive.enable = true;
programs.onedrive.enable = true;
}
);
}