From d530fd3d23fb0ccebc6c24706261e67f6992bfd0 Mon Sep 17 00:00:00 2001 From: worble Date: Mon, 13 Jan 2025 21:29:48 +0000 Subject: [PATCH] add swapfile --- configuration/base.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configuration/base.nix b/configuration/base.nix index fddbe1a..3cc6504 100644 --- a/configuration/base.nix +++ b/configuration/base.nix @@ -17,6 +17,11 @@ boot.loader.efi.canTouchEfiVariables = true; boot.kernelPackages = pkgs.linuxPackages_zen; + swapDevices = [{ + device = "/var/lib/swapfile"; + size = 16 * 1024; + }]; + hardware.bluetooth.enable = true; # networking.hostName = "nixos"; # Define your hostname. @@ -95,8 +100,8 @@ # Open ports in the firewall. # 443 Helldivers crashes internet otherwise - networking.firewall.allowedTCPPorts = [ 443 ]; - networking.firewall.allowedUDPPorts = [ 443 ]; + # networking.firewall.allowedTCPPorts = [ 443 ]; + # networking.firewall.allowedUDPPorts = [ 443 ]; # Or disable the firewall altogether. # networking.firewall.enable = false;