organizing config and getting rid of withs as much as possible
This commit is contained in:
parent
42c647cb63
commit
c365ba3827
12 changed files with 142 additions and 57 deletions
21
modules/nixos/services/onedrive/default.nix
Normal file
21
modules/nixos/services/onedrive/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.wyrdgard.services.onedrive;
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.services.onedrive = {
|
||||
enable = mkEnableOption "Enable OneDrive integration";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.onedrive = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue