From 369d655a38c62eb5e5e3a0df9843cf8a4af065a4 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Fri, 30 May 2025 16:44:23 +0200 Subject: [PATCH] Autologin to root for access from hypervisor --- profiles/nixos/vm.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/profiles/nixos/vm.nix b/profiles/nixos/vm.nix index 6246162..7c7d504 100644 --- a/profiles/nixos/vm.nix +++ b/profiles/nixos/vm.nix @@ -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;