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

View file

@ -8,7 +8,12 @@
}; };
users.users."riley" = { users.users."riley" = {
# Add ssh client
packages = [ pkgs.openssh ]; 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" ];
}; };
} }