1
0

hosts/_iso: Allow clerie to log in to root directly with SSH keys

This commit is contained in:
clerie 2025-02-21 20:25:39 +01:00
parent 9ae31d6786
commit 822763abe4

View File

@ -1,4 +1,4 @@
{ pkgs, lib, modulesPath, ... }: { pkgs, lib, modulesPath, config, ... }:
{ {
imports = [ imports = [
@ -18,6 +18,9 @@
nixfiles-auto-install nixfiles-auto-install
]; ];
# Allow user clerie to log in as root directly with ssh keys
users.users.root.openssh.authorizedKeys.keys = config.users.users.clerie.openssh.authorizedKeys.keys;
services.openssh.settings = { services.openssh.settings = {
PermitRootLogin = lib.mkForce "yes"; PermitRootLogin = lib.mkForce "yes";
}; };