onedrive: init
This commit is contained in:
parent
11a41563c8
commit
67190c1546
2 changed files with 24 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
23
modules/programs/onedrive.nix
Normal file
23
modules/programs/onedrive.nix
Normal 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;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue