]> Skullheadx's Git Forge - nixos.git/commitdiff
nginx show all projects
authorSkullheadx <admonty1@protonmail.com>
Sun, 31 May 2026 23:20:01 +0000 (19:20 -0400)
committerSkullheadx <admonty1@protonmail.com>
Sun, 31 May 2026 23:20:01 +0000 (19:20 -0400)
hosts/icon/configuration.nix

index 0c6ad15b7bb48d3f21b94f02c430c5521f34ea21..e089f6b6f1972c8b15a223b5b905299a3aebc7ff 100644 (file)
   ];
 
   users.groups.git = {};
+  users.users.nginx.extraGroups = ["git"];
+  systemd.services.nginx.serviceConfig = {
+    SupplementaryGroups = ["git"];
+    ReadOnlyPaths = ["/srv/git" "/srv"];
+  };
+  # systemd.services.fcgiwrap.serviceConfig.ReadOnlyPaths = ["/srv/git"];
   # Define a user account. Don't forget to set a password with ‘passwd’.
   users.users = {
     andrew = {
@@ -27,6 +33,7 @@
       group = "git";
       home = "/srv/git";
       createHome = true;
+      homeMode = "755";
       openssh.authorizedKeys.keys = [
         "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPfIZMlXeTEi0YoOq36WNo6xPoolqvoS77ygtKaySkoG admonty1@protonmail.com"
       ];