diff options
| author | triethyl <triethylammonium@pm.me> | 2026-03-19 18:46:47 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2026-03-19 18:46:47 -0400 |
| commit | e86f0613a16a6d6ca64a6ec19e4abc0bf99626b7 (patch) | |
| tree | 2753e5f5f12e4dbe305f47e8883634b6fd2c0eeb /nixos/systems/thinkpad-laptop/hardware.nix | |
| parent | e24f3a2ffaaa72f2c84ae248a962cf82be9a9b4e (diff) | |
thinkpad-laptop: added a 4gb swapfile
Diffstat (limited to 'nixos/systems/thinkpad-laptop/hardware.nix')
| -rw-r--r-- | nixos/systems/thinkpad-laptop/hardware.nix | 7 |
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 |
