Skip to content

Commit

Permalink
Fix SSH authorizedKeysFile
Browse files Browse the repository at this point in the history
  • Loading branch information
stackptr committed Feb 24, 2024
1 parent 87c14a7 commit dd38d08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions hosts/ohm/system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
config,
pkgs,
keys,
lib,
...
}: {
users = {
Expand All @@ -19,6 +20,7 @@
];

security.sudo.wheelNeedsPassword = false;
security.pam.sshAgentAuth.authorizedKeysFiles = lib.mkForce ["/etc/ssh/authorized_keys.d/%u"];

system.stateVersion = "23.11";
}
6 changes: 4 additions & 2 deletions hosts/zeta/system.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
config,
pkgs,
keys,
lib,
...
}: {
security.sudo.wheelNeedsPassword = false;

users = {
mutableUsers = false;
users.mu = {
Expand All @@ -20,5 +19,8 @@
users.root.openssh.authorizedKeys.keys = [keys.Petrichor keys.Rhizome];
};

security.sudo.wheelNeedsPassword = false;
security.pam.sshAgentAuth.authorizedKeysFiles = lib.mkForce ["/etc/ssh/authorized_keys.d/%u"];

system.stateVersion = "23.11";
}

0 comments on commit dd38d08

Please sign in to comment.