summary refs log tree commit diff
path: root/profiles
diff options
context:
space:
mode:
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";