From 01a62c3b0fb329ebc0f994b9a71719af2b30876a Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Thu, 24 Jun 2021 17:15:26 -0400
Subject: [PATCH] Set the same swappiness for the localdev VMs

There is no swap to use but (a) try the setting anyway and (b) maybe there
will be at some point.
---
 morph/lib/hardware-virtual.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/morph/lib/hardware-virtual.nix b/morph/lib/hardware-virtual.nix
index d5e9067b..cf158279 100644
--- a/morph/lib/hardware-virtual.nix
+++ b/morph/lib/hardware-virtual.nix
@@ -11,6 +11,7 @@
 
   boot.initrd.availableKernelModules = [ "ata_piix" "sd_mod" "sr_mod" ];
   boot.initrd.kernelModules = [ ];
+  boot.kernel.sysctl = { "vm.swappiness" = 0; };
   boot.kernelModules = [ ];
   boot.extraModulePackages = [ ];
 
@@ -33,4 +34,3 @@
   # We want to push packages with morph without having to sign them
   nix.trustedUsers = [ "@wheel" "root" "vagrant" ];
 }
-
-- 
GitLab