diff --git a/modules/server/services/default.nix b/modules/server/services/default.nix new file mode 100644 index 00000000..8d2b47d0 --- /dev/null +++ b/modules/server/services/default.nix @@ -0,0 +1 @@ +{ imports = [ ./forgejo.nix ]; } diff --git a/modules/server/services/forgejo.nix b/modules/server/services/forgejo.nix new file mode 100644 index 00000000..e24cd8d9 --- /dev/null +++ b/modules/server/services/forgejo.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: +with lib; +let cfg = config.void.services.forgejo; +in { + options.void.server.forgejo = { enable = mkEnableOption false; }; + + config = mkIf cfg.enable { + services.forgejo = { + enable = true; + # settings = { }; + }; + }; +}