mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-05 07:23:29 +01:00
Unfortunately, that does break nixos-rebuild switch
This commit is contained in:
1 file changed
+11
-4
@@ -57,14 +57,21 @@ in
|
|||||||
Maximum number of configurations to display when booting.
|
Maximum number of configurations to display when booting.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
populateCmd = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
readOnly = true;
|
||||||
|
description = ''
|
||||||
|
Contains the script used to populate petitboot when building an image.
|
||||||
|
Primarily used for sdImage.populateRootCommands.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.boot.loader.petitboot.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
system.build.installBootLoader = lib.mkForce "${installer} ${args} -c";
|
system.build.installBootLoader = lib.mkForce "${installer} ${args} -c";
|
||||||
system.boot.loader.id = "petitboot";
|
system.boot.loader.id = "petitboot";
|
||||||
sdImage.populateRootCommands = lib.mkForce ''
|
cfg.populateCmd = "${sdImageInstaller} ${args}";
|
||||||
${sdImageInstaller} ${args} -c ${config.system.build.toplevel} -d ./files/kboot.conf
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user