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 42c647cb63
commit c365ba3827
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
12 changed files with 142 additions and 57 deletions

View file

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