Skip to content

Commit

Permalink
nixos/amazon-image: fix eval (NixOS#378799)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao authored Feb 2, 2025
2 parents e19fa2f + c0e2fbb commit ab842f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nixos/modules/virtualisation/amazon-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ in

boot.growPartition = true;

fileSystems."/" = mkIf (!cfg.zfs.enable) lib.mkDefault {
fileSystems."/" = mkIf (!cfg.zfs.enable) (lib.mkDefault {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
autoResize = true;
};
});

fileSystems."/boot" = mkIf (cfg.efi || cfg.zfs.enable) lib.mkDefault {
fileSystems."/boot" = mkIf (cfg.efi || cfg.zfs.enable) (lib.mkDefault {
# The ZFS image uses a partition labeled ESP whether or not we're
# booting with EFI.
device = "/dev/disk/by-label/ESP";
fsType = "vfat";
};
});

services.zfs.expandOnBoot = mkIf cfg.zfs.enable "all";

Expand Down

0 comments on commit ab842f8

Please sign in to comment.