diff options
author | Franck Cuny <franck@fcuny.net> | 2022-06-11 13:46:09 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-11 13:49:31 -0700 |
commit | f4f83c7e83272234571d9580f5a897676de3d0dc (patch) | |
tree | 1bcea71f9a65379bff91c6d8039df0ca9f7e3559 /modules/services/gitea | |
parent | ci(default): add `apps.ci.shellcheck` to flake.nix (diff) | |
download | world-f4f83c7e83272234571d9580f5a897676de3d0dc.tar.gz |
ref(gitea): remove all modules for gitea
I do not use it anymore, I don't need to keep this around. Change-Id: I42af32eec4ee8ab4c2a8c60b5a8306a4eb418f51 Reviewed-on: https://cl.fcuny.net/c/world/+/410 Tested-by: CI Reviewed-by: Franck Cuny <franck@fcuny.net>
Diffstat (limited to 'modules/services/gitea')
-rw-r--r-- | modules/services/gitea/default.nix | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix deleted file mode 100644 index ece75de..0000000 --- a/modules/services/gitea/default.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ config, pkgs, lib, ... }: -let cfg = config.my.services.gitea; -in -{ - options.my.services.gitea = with lib; { - enable = mkEnableOption "gitea git server"; - stateDir = mkOption { - type = types.str; - example = "/var/lib/gitea"; - description = "gitea base directory"; - }; - }; - - config = lib.mkIf cfg.enable { - 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 = "git.fcuny.net"; - rootUrl = "https://git.fcuny.net/"; - httpAddress = "127.0.0.1"; - httpPort = 8002; - log.level = "Error"; - settings = { - other.SHOW_FOOTER_VERSION = false; - metrics.ENABLED = true; - metrics.ENABLED_ISSUE_BY_REPOSITORY = true; - }; - dump.enable = false; - database = { - type = "sqlite3"; - user = "git"; - }; - }; - - services.nginx.virtualHosts."git.fcuny.net" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://127.0.0.1:8002"; - proxyWebsockets = true; - }; - }; - - services.prometheus.scrapeConfigs = [{ - job_name = "gitea"; - metrics_path = "/metrics"; - scheme = "https"; - scrape_interval = "30s"; - static_configs = [{ targets = [ "git.fcuny.net" ]; }]; - }]; - - my.services.backup = { paths = [ cfg.stateDir ]; }; - }; -} |