X-Git-Url: https://gitweb.ps.run/flake_server/blobdiff_plain/917bc86c39d2bb2f42a1d749c16e14202743e107..HEAD:/configuration.nix diff --git a/configuration.nix b/configuration.nix index bc68635..3c0e603 100644 --- a/configuration.nix +++ b/configuration.nix @@ -29,6 +29,10 @@ system.autoUpgrade = { enable = true; allowReboot = true; + flake = inputs.self.outPath; + flags = [ "-L" ]; + dates = "02:00"; + randomizedDelaySec = "45min"; }; networking.hostName = "netcup"; # Define your hostname. @@ -101,6 +105,7 @@ tmux md4c highlight + multimarkdown python312Packages.pygments pkg-config @@ -221,6 +226,10 @@ extraConfig = '' psch.dev ps.run pasch.cc { + rewrite /src /src/ + handle_path /src/* { + reverse_proxy http://localhost:3000 + } rewrite /git /git/ handle_path /git/* { encode gzip zstd @@ -337,6 +346,25 @@ socket.group = "caddy"; }; + services.forgejo = { + enable = true; + repositoryRoot = "/srv/git2"; + settings = { + server = { + DOMAIN = "ps.run"; + ROOT_URL = "https://ps.run/src"; + }; + repository = { + REQUIRE_SIGNIN_VIEW = false; + }; + service = { + REQUIRE_SIGNIN_VIEW = false; + DISABLE_REGISTRATION = true; + }; + }; + }; + users.users.forgejo.extraGroups = [ "git" ]; + users.users.chirp = { isSystemUser = true; group = "chirp";