diff --git a/modules/services/nextcloud.nix b/modules/services/nextcloud.nix new file mode 100644 index 0000000..6db955c --- /dev/null +++ b/modules/services/nextcloud.nix @@ -0,0 +1,21 @@ +{ + lib, + config, + ... +}: { + options = { + myModules.enableNextcloud = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Enable Nextcloud server"; + }; + }; + + config = lib.mkMerge [ + (lib.mkIf config.myModules.enableNextcloud { + services.nextcloud = { + enable = true; + }; + }) + ]; +}