Skip to content

Commit

Permalink
default to root for autologin in nixos kexec image
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 3, 2024
1 parent 23f987d commit b81c6e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nix/noninteractive.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b81c6e0

Please sign in to comment.