organizing config and getting rid of withs as much as possible

This commit is contained in:
Christoph Hollizeck 2024-09-06 21:28:59 +02:00
parent 358d57e8eb
commit 3a31a8b5ee
Signed by: Daholli
GPG key ID: 1763BB530F50279E
12 changed files with 142 additions and 57 deletions

View 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;
};
};
}