mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
optimize ssh keys
This commit is contained in:
parent
14864ace91
commit
c96c95b742
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue