onedrive: init
This commit is contained in:
parent
11a41563c8
commit
7b3ad8a182
2 changed files with 25 additions and 0 deletions
24
modules/programs/onedrive.nix
Normal file
24
modules/programs/onedrive.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
options,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
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;
|
||||
environment.systemPackages = [pkgs.onedrive];
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue