Slight rework of the installer

This commit is contained in:
Nicolas Jeannerod 2024-11-07 18:36:43 +01:00 committed by Valentin Gagarin
parent 271315747b
commit 9d04ce7c99

View file

@ -3,7 +3,10 @@
WARNING: Running this installer will format the target disk!
*/
nixpkgs: machine:
{ nixpkgs, ... }:
machine:
let
installer = { config, pkgs, lib, ... }:
let
@ -23,9 +26,7 @@ nixpkgs: machine:
];
nixpkgs.hostPlatform = "x86_64-linux";
services.getty.autologinUser = lib.mkForce "root";
programs.bash.loginShellInit = ''
${nixpkgs.lib.getExe bootstrap}
'';
programs.bash.loginShellInit = nixpkgs.lib.getExe bootstrap;
isoImage = {
compressImage = false;
@ -37,4 +38,3 @@ nixpkgs: machine:
};
in
(nixpkgs.lib.nixosSystem { modules = [installer]; }).config.system.build.isoImage