organizing config and getting rid of withs as much as possible
This commit is contained in:
parent
2453f1ad94
commit
4d3d7218ce
12 changed files with 142 additions and 57 deletions
|
@ -1,17 +0,0 @@
|
|||
{ lib, config, ... }:
|
||||
with lib;
|
||||
with lib.wyrdgard;
|
||||
let
|
||||
cfg = config.wyrdgard.apps.onedrive;
|
||||
in
|
||||
{
|
||||
options.wyrdgard.apps.onedrive = with types; {
|
||||
enable = mkEnableOption "Enable OneDrive integration";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.onedrive = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue