From e86f0613a16a6d6ca64a6ec19e4abc0bf99626b7 Mon Sep 17 00:00:00 2001 From: triethyl Date: Thu, 19 Mar 2026 18:46:47 -0400 Subject: thinkpad-laptop: added a 4gb swapfile --- nixos/systems/thinkpad-laptop/hardware.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nixos/systems/thinkpad-laptop/hardware.nix b/nixos/systems/thinkpad-laptop/hardware.nix index b0470aa..8ee8453 100644 --- a/nixos/systems/thinkpad-laptop/hardware.nix +++ b/nixos/systems/thinkpad-laptop/hardware.nix @@ -1,7 +1,7 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: +{ config, lib, modulesPath, ... }: { imports = @@ -24,7 +24,10 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ ]; + swapDevices = [{ + device = "/var/lib/swapfile"; + size = 4*1024; # 16 GiB + }]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's -- cgit v1.2.3