diff --git a/morph/grid/production/storage000-hardware.nix b/morph/grid/production/storage000-hardware.nix index f0d8c290ddb50162bdb0fee7e0f0ca67cd3a4f5c..71bd02e2750009d672c1959bdd8e9c08a5173935 100644 --- a/morph/grid/production/storage000-hardware.nix +++ b/morph/grid/production/storage000-hardware.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernel.sysctl = { "vm.swappiness" = 0; }; fileSystems."/" = { device = "/dev/disk/by-uuid/ccabaa39-d888-467e-b8d9-75b5790a91aa"; diff --git a/morph/grid/production/storage001-hardware.nix b/morph/grid/production/storage001-hardware.nix index 4cd9f59b76dd77b6e6e85709b3fbee771677b641..49809465ab1009fe23efe094080bbaa7a9f50b44 100644 --- a/morph/grid/production/storage001-hardware.nix +++ b/morph/grid/production/storage001-hardware.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernel.sysctl = { "vm.swappiness" = 0; }; fileSystems."/" = { device = "/dev/disk/by-uuid/f72c1f46-6723-45bf-9ef7-92f31cc37589"; diff --git a/morph/grid/production/storage002-hardware.nix b/morph/grid/production/storage002-hardware.nix index 4fc3a4097e05ec8c38c86db6bfce92e2a1af6f35..64defbb7ff9f1cf1867c1c9d4d60c5eccfbf40d7 100644 --- a/morph/grid/production/storage002-hardware.nix +++ b/morph/grid/production/storage002-hardware.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernel.sysctl = { "vm.swappiness" = 0; }; fileSystems."/" = { device = "/dev/disk/by-uuid/0e92ada9-effb-42e2-a26a-9cdb529bcdc7"; diff --git a/morph/grid/production/storage003-hardware.nix b/morph/grid/production/storage003-hardware.nix index 607943b19117106b532f7c2c2032aea31fce04e3..1661e35447ed56845ca516d65108dd9ec2a7171b 100644 --- a/morph/grid/production/storage003-hardware.nix +++ b/morph/grid/production/storage003-hardware.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernel.sysctl = { "vm.swappiness" = 0; }; fileSystems."/" = { device = "/dev/disk/by-uuid/daf0b345-97da-46bc-b9df-500d771ec375"; diff --git a/morph/grid/production/storage004-hardware.nix b/morph/grid/production/storage004-hardware.nix index 07de74e20ef58ab474b02248bcb6eed6189e1079..bc66beec8f154b9026075a87c8a7c707c3ae1214 100644 --- a/morph/grid/production/storage004-hardware.nix +++ b/morph/grid/production/storage004-hardware.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernel.sysctl = { "vm.swappiness" = 0; }; fileSystems."/" = { device = "/dev/disk/by-uuid/d628122e-05d9-4212-b6a5-4b9516d85dbe"; diff --git a/morph/grid/production/storage005-hardware.nix b/morph/grid/production/storage005-hardware.nix index 9a5ad02725e30b00619978035772d60bec9fcb8a..ad8dc69c649c0e615d67e8e9e3e6d01196721fb7 100644 --- a/morph/grid/production/storage005-hardware.nix +++ b/morph/grid/production/storage005-hardware.nix @@ -12,6 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; + boot.kernel.sysctl = { "vm.swappiness" = 0; }; fileSystems."/" = { device = "/dev/disk/by-uuid/2653c6bb-396f-4911-b9ff-b68de8f9715d"; diff --git a/morph/lib/issuer-aws.nix b/morph/lib/issuer-aws.nix index b4d4757ad5597b69363ef12e4297aec80913f00e..349eb0766f7c893a795701fe3484750a82bb3f6d 100644 --- a/morph/lib/issuer-aws.nix +++ b/morph/lib/issuer-aws.nix @@ -1,4 +1,5 @@ { imports = [ <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> ]; ec2.hvm = true; + boot.kernel.sysctl = { "vm.swappiness" = 0; }; }