diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-06 12:39:26 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-06 12:39:26 -0700 |
commit | cf16fe85f3ac340b03f90e2f7f3ad85e4c621ce9 (patch) | |
tree | f06f3f9f5b6ea0d607648aa45e927bc248995ac4 /hosts/common/server | |
parent | prometheus: proper name for the option (diff) | |
download | world-cf16fe85f3ac340b03f90e2f7f3ad85e4c621ce9.tar.gz |
refactor gitea as a module
Diffstat (limited to 'hosts/common/server')
-rw-r--r-- | hosts/common/server/gitea.nix | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/hosts/common/server/gitea.nix b/hosts/common/server/gitea.nix deleted file mode 100644 index d606c75..0000000 --- a/hosts/common/server/gitea.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ 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"; - user = cfg.user; - }; - }; - - services.restic.backups = { - gitea = { - paths = [ cfg.stateDir ]; - repository = "/data/slow/backups/systems"; - passwordFile = config.age.secrets.restic-repo-systems.path; - timerConfig = { OnCalendar = "00:15"; }; - initialize = true; - extraBackupArgs = [ "--tag gitea" ]; - pruneOpts = [ "--keep-daily 7" "--keep-weekly 4 --keep-monthly 6" ]; - }; - }; -} |