default to root for autologin in nixos kexec image
This commit is contained in:
parent
23f987d2af
commit
b81c6e0ace
1 changed files with 4 additions and 0 deletions
|
@ -36,10 +36,14 @@
|
||||||
users.users.nixos = {
|
users.users.nixos = {
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
isNormalUser = lib.mkForce false;
|
isNormalUser = lib.mkForce false;
|
||||||
|
shell = "/run/current-system/sw/bin/bash";
|
||||||
group = "nixos";
|
group = "nixos";
|
||||||
};
|
};
|
||||||
users.groups.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
|
# we are missing this from base.nix
|
||||||
boot.supportedFilesystems = [
|
boot.supportedFilesystems = [
|
||||||
"btrfs"
|
"btrfs"
|
||||||
|
|
Loading…
Reference in a new issue