Unfortunately, that does break nixos-rebuild switch

This commit is contained in:
Josh Buker 2026-01-28 23:09:47 -08:00
parent c281bd071a
commit d6aea43451
No known key found for this signature in database
GPG key ID: E077B96C5EFF10F2

View file

@ -57,14 +57,21 @@ in
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.boot.loader.id = "petitboot";
sdImage.populateRootCommands = lib.mkForce ''
${sdImageInstaller} ${args} -c ${config.system.build.toplevel} -d ./files/kboot.conf
'';
cfg.populateCmd = "${sdImageInstaller} ${args}";
};
}