From b81c6e0ace8c3109352be28bb9ed9a856a215ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 3 Sep 2024 11:30:32 +0200 Subject: [PATCH] default to root for autologin in nixos kexec image --- nix/noninteractive.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nix/noninteractive.nix b/nix/noninteractive.nix index 2e2d888..ee87048 100644 --- a/nix/noninteractive.nix +++ b/nix/noninteractive.nix @@ -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"