summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-12-04 13:34:35 -0800
committerWilliam A. Kennington III <william@wkennington.com>2014-12-04 13:34:35 -0800
commit6ad032ed9310b3031a24441acef152c6bfca8daa (patch)
tree6306772dd2403332615ca06ccce3f438d7e30cc0 /nixos/tests
parente5d92d45b7917350e6f2f262f9871c5d46f7719e (diff)
downloadnixpkgs-6ad032ed9310b3031a24441acef152c6bfca8daa.tar
nixpkgs-6ad032ed9310b3031a24441acef152c6bfca8daa.tar.gz
nixpkgs-6ad032ed9310b3031a24441acef152c6bfca8daa.tar.bz2
nixpkgs-6ad032ed9310b3031a24441acef152c6bfca8daa.tar.lz
nixpkgs-6ad032ed9310b3031a24441acef152c6bfca8daa.tar.xz
nixpkgs-6ad032ed9310b3031a24441acef152c6bfca8daa.tar.zst
nixpkgs-6ad032ed9310b3031a24441acef152c6bfca8daa.zip
nixos/installer: Fix swap device override
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/installer.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/installer.nix b/nixos/tests/installer.nix
index 680eeff7955..f27854f7645 100644
--- a/nixos/tests/installer.nix
+++ b/nixos/tests/installer.nix
@@ -58,6 +58,8 @@ let
 
         ${optionalString (!readOnly) "nix.readOnlyStore = false;"}
 
+        swapDevices = mkOverride 0 [ ];
+
         environment.systemPackages = [ ${optionalString testChannel "pkgs.rlwrap"} ];
       }
     '';
@@ -79,8 +81,6 @@ let
       virtualisation.pathsInNixDB = channelContents ++ [ pkgs.hello.src ];
       virtualisation.memorySize = 768;
 
-      swapDevices = mkOverride 0 [ ];
-
       networking.firewall.allowedTCPPorts = [ 80 ];
     };