add swapfile

This commit is contained in:
2025-01-13 21:29:48 +00:00
parent eafba50214
commit d530fd3d23

View File

@@ -17,6 +17,11 @@
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_zen;
swapDevices = [{
device = "/var/lib/swapfile";
size = 16 * 1024;
}];
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
# networking.hostName = "nixos"; # Define your hostname. # networking.hostName = "nixos"; # Define your hostname.
@@ -95,8 +100,8 @@
# Open ports in the firewall. # Open ports in the firewall.
# 443 Helldivers crashes internet otherwise # 443 Helldivers crashes internet otherwise
networking.firewall.allowedTCPPorts = [ 443 ]; # networking.firewall.allowedTCPPorts = [ 443 ];
networking.firewall.allowedUDPPorts = [ 443 ]; # networking.firewall.allowedUDPPorts = [ 443 ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;