nixos-config/modules/nixos/services/onedrive/default.nix

22 lines
314 B
Nix

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