Add an SSD disk for swap and other temp stuff
Eelco Dolstra committed
Oct 21, 2016 at 14:34 UTC
b152d162eda6dd431f7e0454999dcf69d5feffa7
1 file changed
+11
-1
nixos-org/network.nix
+11
-1
@@ -198,7 +198,17 @@ in
198
options = [ "bind" ];
199
};
200
201
- swapDevices = [ { device = "/tmp/swapfile"; size = 3 * 1024; } ];
201
+ fileSystems."/scratch" =
202
+ { autoFormat = true;
203
+ fsType = "ext4";
204
+ device = "/dev/xvdk";
205
+ ec2.size = 64;
206
+ ec2.volumeType = "gp2";
207
+ };
208
+
209
+ swapDevices =
210
+ [ { device = "/scratch/swapfile"; size = 8 * 1024; }
211
+ ];
212
213
system.stateVersion = "14.12";
214