From 5b735b864b9b74f9a6c4d8997baf0032b1df1119 Mon Sep 17 00:00:00 2001 From: kalipso Date: Tue, 5 Dec 2023 18:48:46 +0100 Subject: [PATCH] [lucia] fix config --- machines/lucia/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/machines/lucia/configuration.nix b/machines/lucia/configuration.nix index 6d71156..9028e2b 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;