modules/image: remove extraneous sane.image.enable option

This commit is contained in:
2024-06-07 07:42:47 +00:00
parent e104499636
commit 1dd10450f2

View File

@@ -17,12 +17,6 @@ let
in in
{ {
options = { options = {
sane.image.enable = mkOption {
# TODO: why is this enable option even needed?
default = true;
type = types.bool;
description = "whether to enable image targets. even so they won't be built unless you specifically reference the `system.build.img` target.";
};
# packages whose contents should be copied directly into the /boot partition. # packages whose contents should be copied directly into the /boot partition.
# e.g. EFI loaders, u-boot bootloader, etc. # e.g. EFI loaders, u-boot bootloader, etc.
sane.image.extraBootFiles = mkOption { sane.image.extraBootFiles = mkOption {
@@ -195,7 +189,6 @@ in
}; };
}; };
in in
lib.mkIf cfg.enable
{ {
system.build.img = pkgs.runCommandLocal "nixos-with-bootloader" { system.build.img = pkgs.runCommandLocal "nixos-with-bootloader" {
passthru = { passthru = {