summary refs log tree commit diff
path: root/profiles
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-02-17 16:50:09 +0200
committertzlil <tzlils@protonmail.com>2023-02-17 16:50:09 +0200
commit3c3e4531dac7f4ab591bf391be72a11121b45673 (patch)
treec87f7faa39dd4cf22a47cac661d1e4a50dda9888 /profiles
parentd4896b353eed0ab37cf8a2591fe1f5369c37883f (diff)
cgit works, added git user to ssh AllowUser, added uid/gid maps to persist
Diffstat (limited to 'profiles')
-rw-r--r--profiles/core.nix3
-rw-r--r--profiles/ssh.nix2
2 files changed, 4 insertions, 1 deletions
diff --git a/profiles/core.nix b/profiles/core.nix
index 17d64e2..5f48baa 100644
--- a/profiles/core.nix
+++ b/profiles/core.nix
@@ -25,5 +25,8 @@
 
     age.identityPaths = [ "/nix/persist/etc/ssh/ssh_host_ed25519_key" ];
     programs.command-not-found.dbPath = inputs.programsdb.packages.${pkgs.system}.programs-sqlite;
+
+    # save uid/guid
+    environment.persistence."/nix/persist".directories = [ "/var/lib/nixos" ];
   };
 }
\ No newline at end of file
diff --git a/profiles/ssh.nix b/profiles/ssh.nix
index 4c12cc7..49917f9 100644
--- a/profiles/ssh.nix
+++ b/profiles/ssh.nix
@@ -15,7 +15,7 @@
         AuthenticationMethods publickey
         StreamLocalBindUnlink yes
 
-        AllowUsers tzlil
+        AllowUsers tzlil git
       '';
       settings = {
         permitRootLogin = "no";