Fix swap file mounting.
This commit is contained in:
@@ -95,16 +95,6 @@
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
"/persist/swap" = {
|
||||
mountpoint = "/persist/swap";
|
||||
mountOptions = [
|
||||
"subvol=swap"
|
||||
"noatime"
|
||||
"nodatacow"
|
||||
"compress=no"
|
||||
];
|
||||
swap.swapfile.size = "18G";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -45,14 +45,8 @@
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
fileSystems."/persist/swap" =
|
||||
{ device = "/dev/mapper/cryptroot";
|
||||
fsType = "btrfs";
|
||||
options = [ "subvol=swap" "noatime" "nodatacow" "compress=no" ];
|
||||
};
|
||||
|
||||
swapDevices = [{
|
||||
device = "/persist/swap/swapfile";
|
||||
device = "/swapfile";
|
||||
size = 18 * 1024;
|
||||
}];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user