Allow ssh access from all user devices

This commit is contained in:
Riley Apeldoorn 2023-06-17 20:14:27 +02:00
parent 027bbd01c1
commit f4d9fc70fc
1 changed files with 5 additions and 0 deletions

View File

@ -8,7 +8,12 @@
};
users.users."riley" = {
# Add ssh client
packages = [ pkgs.openssh ];
# Authorize `riley` user on other machines to SSH into this machine.
openssh.authorizedKeys.keyFiles =
let userKey = sys: ../../system/${sys}/keys/riley.pub;
in map userKey [ "dev-lt-63" "strawberry" "lime" ];
};
}