Allow ssh access from all user devices
This commit is contained in:
parent
027bbd01c1
commit
f4d9fc70fc
1 changed files with 5 additions and 0 deletions
|
@ -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" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue