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