mirror of
https://github.com/Unkn0wnCat/dotfiles.git
synced 2025-05-20 10:46:09 +02:00
Improve SSH configuration
This commit is contained in:
parent
413b12b4e1
commit
e59f10ac02
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue