Improve SSH configuration

This commit is contained in:
Kevin Kandlbinder 2023-04-24 12:36:30 +02:00
parent 413b12b4e1
commit e59f10ac02
Signed by: kevin
GPG key ID: 1460B586646E180D
2 changed files with 3 additions and 3 deletions

View file

@ -49,8 +49,8 @@ in {
users.users = mkMerge (map (name: (
mkMerge (
map (user: {
"${user}".openssh.authorizedKeys.keyFiles = [
"/etc/nixos/ssh/${name}/authorized_keys"
"${user}".openssh.authorizedKeys.keys = [
(lib.strings.splitString "\n" (builtins.readFile "../../ssh/${name}/authorized_keys"))
];
}) cfg.authorized."${name}".users
)