From c96c95b7426c781cbad8363a39feb5f62cd45a88 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 2 Dec 2021 14:57:54 -0500 Subject: [PATCH] optimize ssh keys --- modules/sean.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/sean.nix b/modules/sean.nix index d39ab83..5385b0e 100644 --- a/modules/sean.nix +++ b/modules/sean.nix @@ -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;