Autologin to root for access from hypervisor

This commit is contained in:
Jan-Bulthuis 2025-05-30 16:44:23 +02:00
parent eab130b99d
commit 369d655a38

View File

@ -32,10 +32,11 @@ in
ssh.enable = true;
};
# Autologin to root for access from hypervisor
services.getty.autologinUser = "root";
# Local user
modules.secrets.secrets."passwords/local-hashed".neededForUsers = true;
services.getty.autologinUser = "local";
security.sudo.wheelNeedsPassword = false;
users.mutableUsers = false;
users.users.local = {
hashedPasswordFile = config.sops.secrets."passwords/local-hashed".path;