From aa0798b2e6f0aa70fbc5295a94674c667f3c755d Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 27 Nov 2025 21:29:07 +0100 Subject: [PATCH] update --- configuration.nix | 28 ++++++++++++++++++++++++++++ flake.lock | 22 +++++++++++----------- 2 files changed, 39 insertions(+), 11 deletions(-) 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"; diff --git a/flake.lock b/flake.lock index d5289a7..a4ea1c2 100644 --- a/flake.lock +++ b/flake.lock @@ -199,11 +199,11 @@ ] }, "locked": { - "lastModified": 1764122622, - "narHash": "sha256-TcBFscZxMn9ZRe/bxDVG/pmvqdJGP/aXUUANDikU4NA=", + "lastModified": 1764208886, + "narHash": "sha256-voOx8RsK3miw3EHw05nwuOS4ltzeH8tKJnVr+mxtTPQ=", "owner": "Infinidoge", "repo": "nix-minecraft", - "rev": "e6cfda9f65cb9bd38fa10efb4c43b09c9fe659eb", + "rev": "7da8a2d675f9cc56b3f6d654b4cccdca5016ac8e", "type": "github" }, "original": { @@ -244,7 +244,7 @@ "type": "github" } }, - "psch-flakes": { + "ps-flakes": { "inputs": { "flake-utils": "flake-utils_4", "nixpkgs": [ @@ -252,17 +252,17 @@ ] }, "locked": { - "lastModified": 1764149497, - "narHash": "sha256-JJhhMJEd86fsAAUzAKKHsyW5Hz1DWne8BZ9ffd/jI3U=", + "lastModified": 1764274965, + "narHash": "sha256-N2ok5ycRR8fTpBaJuvtpml1qDfgShk0/iOOwMoBLM2g=", "ref": "refs/heads/main", - "rev": "9a1d0c514456752694e317bfef7b500fa7caeee2", - "revCount": 18, + "rev": "1998b16ee96c2f01e072f375e2d4e5ae528302ed", + "revCount": 22, "type": "git", - "url": "git://psch.dev/flakes" + "url": "git://ps.run/flakes" }, "original": { "type": "git", - "url": "git://psch.dev/flakes" + "url": "git://ps.run/flakes" } }, "root": { @@ -271,7 +271,7 @@ "flake-utils": "flake-utils_2", "nix-minecraft": "nix-minecraft", "nixpkgs": "nixpkgs", - "psch-flakes": "psch-flakes", + "ps-flakes": "ps-flakes", "simple-nixos-mailserver": "simple-nixos-mailserver" } }, -- 2.50.1