mirror of
https://github.com/Unkn0wnCat/dotfiles.git
synced 2025-06-25 10:36:56 +02:00
Fix issue in SSH key config
This commit is contained in:
parent
e59f10ac02
commit
f8f2b0d808
1 changed files with 4 additions and 3 deletions
|
@ -49,9 +49,10 @@ in {
|
|||
users.users = mkMerge (map (name: (
|
||||
mkMerge (
|
||||
map (user: {
|
||||
"${user}".openssh.authorizedKeys.keys = [
|
||||
(lib.strings.splitString "\n" (builtins.readFile "../../ssh/${name}/authorized_keys"))
|
||||
];
|
||||
"${user}".openssh.authorizedKeys.keys =
|
||||
(lib.strings.splitString "\n"
|
||||
(lib.strings.removeSuffix "\n"
|
||||
(builtins.readFile (./. + "/../../ssh/${name}/authorized_keys"))));
|
||||
}) cfg.authorized."${name}".users
|
||||
)
|
||||
)) (attrNames cfg.authorized));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue