From c0e2fbbcad694e99e22dd3f099b2b8288b0ae750 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 2 Feb 2025 13:29:03 +0100 Subject: [PATCH] nixos/amazon-image: fix eval --- nixos/modules/virtualisation/amazon-image.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index ed12029fc5c7..d49eb8246d0f 100644 --- a/nixos/modules/virtualisation/amazon-image.nix +++ b/nixos/modules/virtualisation/amazon-image.nix @@ -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";