From d069a2b74d7a1cdb85345b900081955395b19c78 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 8 Mar 2022 19:14:42 -0800 Subject: gitea: initial configuration --- hosts/common/nas.nix | 1 + hosts/common/server/gitea.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 hosts/common/server/gitea.nix 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"; }; + }; +} -- cgit 1.4.1