diff --git a/nixos/hosts/framework-server/ssh-luks.nix b/nixos/hosts/framework-server/ssh-luks.nix index 305e358f..25a3f050 100644 --- a/nixos/hosts/framework-server/ssh-luks.nix +++ b/nixos/hosts/framework-server/ssh-luks.nix @@ -9,7 +9,7 @@ enable = true; port = 22; shell = "/bin/cryptsetup-askpass"; - authorizedKeys = [ config.users.users.albert.openssh.authorizedKeys.keyFiles ]; + authorizedKeys = [ config.users.users.${username}.openssh.authorizedKeys.keyFiles ]; hostKeys = [ "/etc/secrets/initrd/ssh_host_rsa_key" "/etc/secrets/initrd/ssh_host_ed25519_key" ]; }; boot.initrd.availableKernelModules = [ "e1000e" ];