summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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