diff options
author | Ben Sima <ben@bsima.me> | 2020-04-21 03:44:59 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-04-21 03:44:59 -0700 |
commit | ea86ac82021efda2e324b7790780ec87ce303ffa (patch) | |
tree | 7a86e388b4000feaf53988d6e5fd6f37a4f7ec1b /Que | |
parent | b0bc9e6a95b4384d13f5c460a249c199b69567d9 (diff) |
Add swap to que-prod
Diffstat (limited to 'Que')
-rw-r--r-- | Que/Prod.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Que/Prod.nix b/Que/Prod.nix index 57a386a..138f582 100644 --- a/Que/Prod.nix +++ b/Que/Prod.nix @@ -3,6 +3,9 @@ imports = [ <nixpkgs/nixos/modules/profiles/qemu-guest.nix> ]; boot.loader.grub.device = "/dev/vda"; fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; }; + swapDevices = [ + { device = "/swapfile"; } # 4GB + ]; networking.firewall.allowedTCPPorts = [ 22 80 443 ]; networking = { nameservers = [ |