amazon: make fileSystems option disko-compatible

When using disko, the user can choose their own filesystem layout.
In that case we don't want to specify fileSystems with normal priority
as it would not allow disko to set its own values.
This commit is contained in:
Jörg Thalheim
2024-03-22 07:26:19 +01:00
parent d1bb5864a8
commit ce99e2aa18

View File

@@ -28,13 +28,13 @@ in
boot.growPartition = true; boot.growPartition = true;
fileSystems."/" = mkIf (!cfg.zfs.enable) { fileSystems."/" = mkIf (!cfg.zfs.enable) lib.mkDefault {
device = "/dev/disk/by-label/nixos"; device = "/dev/disk/by-label/nixos";
fsType = "ext4"; fsType = "ext4";
autoResize = true; autoResize = true;
}; };
fileSystems."/boot" = mkIf (cfg.efi || cfg.zfs.enable) { fileSystems."/boot" = mkIf (cfg.efi || cfg.zfs.enable) lib.mkDefault {
# The ZFS image uses a partition labeled ESP whether or not we're # The ZFS image uses a partition labeled ESP whether or not we're
# booting with EFI. # booting with EFI.
device = "/dev/disk/by-label/ESP"; device = "/dev/disk/by-label/ESP";