diff options
-rw-r--r-- | hosts/common/nas.nix | 1 | ||||
-rw-r--r-- | hosts/common/server/gitea.nix | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/hosts/common/nas.nix b/hosts/common/nas.nix index f9017f2..c650bba 100644 --- a/hosts/common/nas.nix +++ b/hosts/common/nas.nix @@ -9,6 +9,7 @@ ./server/traefik.nix ./server/transmission.nix ./server/unifi.nix + ./server/gitea.nix ]; users.groups.nas.gid = 5000; diff --git a/hosts/common/server/gitea.nix b/hosts/common/server/gitea.nix new file mode 100644 index 0000000..83380a0 --- /dev/null +++ b/hosts/common/server/gitea.nix @@ -0,0 +1,27 @@ +{ config, pkgs, lib, ... }: + +let cfg = config.services.gitea; +in { + users.users.git = { + description = "Gitea Service"; + home = cfg.stateDir; + useDefaultShell = true; + group = "git"; + isSystemUser = true; + }; + users.groups.git = { }; + + services.gitea = { + enable = true; + user = "git"; + domain = "git.fcuny.net"; + appName = "${cfg.domain}"; + rootUrl = "https://${cfg.domain}/"; + httpAddress = "127.0.0.1"; + httpPort = 8002; + log.level = "Error"; + settings = { other.SHOW_FOOTER_VERSION = false; }; + dump.enable = false; + database = { type = "sqlite3"; }; + }; +} |