[lucia] fix config

This commit is contained in:
2023-12-05 18:48:46 +01:00
parent 8c7fd82a6e
commit 5b735b864b

View File

@@ -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;