servo: use a swap partition instead of a swapfile

This commit is contained in:
colin 2022-06-29 03:29:45 -07:00
parent 92488dd890
commit 634e5a8c71

View File

@ -52,8 +52,27 @@
enable = true;
};
# btrfs doesn't easily support swapfiles
# swapDevices = [
# { device = "/nix/persist/swapfile"; size = 4096; }
# ];
# this can be a partition. create with:
# fdisk <dev>
# n
# <default partno>
# <start>
# <end>
# t
# <partno>
# 19 # set part type to Linux swap
# w # write changes
# mkswap -L swap <part>
swapDevices = [
{ device = "/nix/persist/swapfile"; size = 4096; }
{
label = "swap";
# TODO: randomEncryption.enable = true;
}
];
}