summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2026-03-19 18:46:47 -0400
committertriethyl <triethylammonium@pm.me>2026-03-19 18:46:47 -0400
commite86f0613a16a6d6ca64a6ec19e4abc0bf99626b7 (patch)
tree2753e5f5f12e4dbe305f47e8883634b6fd2c0eeb
parente24f3a2ffaaa72f2c84ae248a962cf82be9a9b4e (diff)
thinkpad-laptop: added a 4gb swapfile
-rw-r--r--nixos/systems/thinkpad-laptop/hardware.nix7
1 files 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