optimize ssh keys

This commit is contained in:
Sean Buckley 2021-12-02 14:57:54 -05:00
parent 14864ace91
commit c96c95b742

View file

@ -7,9 +7,8 @@ let
];
in
{
users.users.root.openssh.authorizedKeys =
if config.sconfig.profile == "server"
then { inherit keys; } else { };
users.users.root.openssh.authorizedKeys.keys =
lib.optionals (config.sconfig.profile == "server") keys;
users.users.sean = {
isNormalUser = true;