[lucia] reenable root ssh

This commit is contained in:
2023-12-05 18:37:15 +01:00
parent d887cdbf03
commit 358eb29fc4
2 changed files with 7 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ in
specialArgs.inputs = inputs;
modules = defaultModules ++ [
./lucia/configuration.nix
./lucia/hardware_configuration.nix
];
};

View File

@@ -3,14 +3,18 @@
{
imports =
[ # Include the results of the hardware scan.
./hardware_configuration.nix
../modules/sshd.nix
../modules/malobeo_user.nix
];
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets.njala_api_key = {};
services.openssh.enable = true;
services.openssh.ports = [ 22 ];
services.openssh.passwordAuthentication = false;
services.openssh.settings.PermitRootLogin = "prohibit-password";
users.users.root.openssh.authorizedKeys.keys = import ../ssh_keys.nix;
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
boot.loader.grub.enable = false;
boot.loader.raspberryPi.enable = false;