default to root for autologin in nixos kexec image

This commit is contained in:
Jörg Thalheim 2024-09-03 11:30:32 +02:00
parent 23f987d2af
commit b81c6e0ace

View file

@ -36,10 +36,14 @@
users.users.nixos = {
isSystemUser = true;
isNormalUser = lib.mkForce false;
shell = "/run/current-system/sw/bin/bash";
group = "nixos";
};
users.groups.nixos = {};
# we prefer root as this is also what we use in nixos-anywhere
services.getty.autologinUser = lib.mkForce "root";
# we are missing this from base.nix
boot.supportedFilesystems = [
"btrfs"