diff options
Diffstat (limited to 'apps/cgit/module.nix')
-rw-r--r-- | apps/cgit/module.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/cgit/module.nix b/apps/cgit/module.nix new file mode 100644 index 0000000..106764b --- /dev/null +++ b/apps/cgit/module.nix @@ -0,0 +1,16 @@ +{ appConfig, config, lib, pkgs, ... }: +{ + services.cgit.default.enable = true; + services.cgit.default.nginx.virtualHost = appConfig.domain; + services.cgit.default.repos = lib.mapAttrs + (name: attrs: { + desc = attrs.description; + path = "/var/lib/git/${name}"; + }) + appConfig.repositories; + services.cgit.default.settings = appConfig.settings; + + users.users.git.isSystemUser = true; + users.users.git.home = "/var/lib/git"; + users.users.git.group = "nogroup"; +} |