image.nix: feed bug where enable flag wasnt actually being read

This commit is contained in:
colin 2023-01-08 05:37:25 +00:00
parent af77417531
commit f5acbbd830

View File

@ -79,7 +79,9 @@ in
"ext4" = pkgs.imageBuilder.fileSystem.makeExt4; "ext4" = pkgs.imageBuilder.fileSystem.makeExt4;
"btrfs" = pkgs.imageBuilder.fileSystem.makeBtrfs; "btrfs" = pkgs.imageBuilder.fileSystem.makeBtrfs;
}; };
in { in
lib.mkIf cfg.enable
{
system.build.img-without-firmware = with pkgs; imageBuilder.diskImage.makeGPT { system.build.img-without-firmware = with pkgs; imageBuilder.diskImage.makeGPT {
name = "nixos"; name = "nixos";
diskID = vfatUuidFromFs bootFs; diskID = vfatUuidFromFs bootFs;