From 42186f433fdb0b6e539b018743cd8ba0d37c9452 Mon Sep 17 00:00:00 2001 From: djairoh Date: Tue, 29 Sep 2026 23:14:47 +0200 Subject: [PATCH] add: swapfile --- hosts/tuxcomp/gaming.nix | 1 + hosts/tuxcomp/hardware-configuration.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/tuxcomp/gaming.nix b/hosts/tuxcomp/gaming.nix index 16ddda0..c396801 100644 --- a/hosts/tuxcomp/gaming.nix +++ b/hosts/tuxcomp/gaming.nix @@ -36,6 +36,7 @@ libretro.citra prismlauncher steam + steamguard-cli winetricks ]; diff --git a/hosts/tuxcomp/hardware-configuration.nix b/hosts/tuxcomp/hardware-configuration.nix index aac3112..77733a7 100644 --- a/hosts/tuxcomp/hardware-configuration.nix +++ b/hosts/tuxcomp/hardware-configuration.nix @@ -35,7 +35,10 @@ fsType = "ext4"; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/var/lib/swapfile"; + size = 16*1024; + }]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;