From 6bbda4b4b3473453a3307649b703b2072f24c1b6 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Thu, 26 Sep 2024 10:58:26 +0200 Subject: [PATCH] run installer as root --- installer.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.nix b/installer.nix index d7b5c0e..13d1afb 100644 --- a/installer.nix +++ b/installer.nix @@ -5,7 +5,7 @@ */ nixpkgs: machine: let - installer = { config, pkgs, ... }: + installer = { config, pkgs, lib, ... }: let bootstrap = pkgs.writeShellApplication { name = "bootstrap"; @@ -21,6 +21,7 @@ nixpkgs: machine: "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix" ]; nixpkgs.hostPlatform = "x86_64-linux"; + services.getty.autologinUser = lib.mkForce "root"; programs.bash.loginShellInit = '' ${nixpkgs.lib.getExe bootstrap} '';