diff options
author | Franck Cuny <franck@fcuny.net> | 2022-03-08 19:14:42 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-03-08 19:14:42 -0800 |
commit | d069a2b74d7a1cdb85345b900081955395b19c78 (patch) | |
tree | 6759dbf72fe555aed50bbe08561c4397538b5c93 /hosts/common | |
parent | nas: backup photos and music (diff) | |
download | world-d069a2b74d7a1cdb85345b900081955395b19c78.tar.gz |
gitea: initial configuration
Diffstat (limited to 'hosts/common')
-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"; }; + }; +} |