diff --git a/machines/lucia/configuration.nix b/machines/lucia/configuration.nix index 6d71156b..9028e2b5 100644 --- a/machines/lucia/configuration.nix +++ b/machines/lucia/configuration.nix @@ -1,5 +1,8 @@ { config, pkgs, ... }: +let + sshKeys = import ../ssh_keys.nix; +in { imports = [ # Include the results of the hardware scan. @@ -13,7 +16,7 @@ services.openssh.ports = [ 22 ]; services.openssh.passwordAuthentication = false; services.openssh.settings.PermitRootLogin = "prohibit-password"; - users.users.root.openssh.authorizedKeys.keys = import ../ssh_keys.nix; + users.users.root.openssh.authorizedKeys.keys = sshKeys.admins; # Use the extlinux boot loader. (NixOS wants to enable GRUB by default) boot.loader.grub.enable = false;