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:
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user