]> gitweb.ps.run Git - flake_server/commitdiff
update main
authorPatrick <patrick.schoenberger@posteo.de>
Thu, 27 Nov 2025 20:29:07 +0000 (21:29 +0100)
committerPatrick <patrick.schoenberger@posteo.de>
Thu, 27 Nov 2025 20:29:07 +0000 (21:29 +0100)
configuration.nix
flake.lock

index bc6863573229f2131c049bacb9092f1f98282811..3c0e603af71bcf8bb238f56a8ca266bff8184106 100644 (file)
   system.autoUpgrade = {
     enable = true;
     allowReboot = true;
+    flake = inputs.self.outPath;
+    flags = [ "-L" ];
+    dates = "02:00";
+    randomizedDelaySec = "45min";
   };
 
   networking.hostName = "netcup"; # Define your hostname.
     tmux
     md4c
     highlight
+    multimarkdown
     python312Packages.pygments
 
     pkg-config
 
     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
     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";
index d5289a79e27156c441fe4569357c59b9d05542af..a4ea1c24b9153c0af6a8f2757f59e53125cad40d 100644 (file)
         ]
       },
       "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": {
         "type": "github"
       }
     },
-    "psch-flakes": {
+    "ps-flakes": {
       "inputs": {
         "flake-utils": "flake-utils_4",
         "nixpkgs": [
         ]
       },
       "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": {
         "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"
       }
     },