From fed8968235e674d358fee0535c5212e40cb47264 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux <benoit@leastauthority.com> Date: Thu, 22 Feb 2024 10:21:11 +0100 Subject: [PATCH] No need - no swap file/partition on Vagrant VMs Signed-off-by: Benoit Donneaux <benoit@leastauthority.com> --- morph/lib/hardware-vagrant.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morph/lib/hardware-vagrant.nix b/morph/lib/hardware-vagrant.nix index 10c198a1..c13cef85 100644 --- a/morph/lib/hardware-vagrant.nix +++ b/morph/lib/hardware-vagrant.nix @@ -20,7 +20,7 @@ boot.loader.grub.device = "/dev/vda"; boot.initrd.availableKernelModules = [ "ata_piix" "virtio_pci" "virtio_blk" "sd_mod" "sr_mod" ]; - boot.kernel.sysctl = { "vm.swappiness" = 1; }; + boot.kernel.sysctl = { "vm.swappiness" = 0; }; boot.kernelParams = [ "console=tty0" "console=ttyS0,115200" ]; # remove the fsck that runs at startup. It will always fail to run, stopping -- GitLab