diff options
author | tzlil <tzlils@protonmail.com> | 2023-02-17 16:50:09 +0200 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-02-17 16:50:09 +0200 |
commit | 3c3e4531dac7f4ab591bf391be72a11121b45673 (patch) | |
tree | c87f7faa39dd4cf22a47cac661d1e4a50dda9888 /profiles | |
parent | d4896b353eed0ab37cf8a2591fe1f5369c37883f (diff) |
cgit works, added git user to ssh AllowUser, added uid/gid maps to persist
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/core.nix | 3 | ||||
-rw-r--r-- | profiles/ssh.nix | 2 |
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"; |