diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-19 22:43:26 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-19 22:43:26 +0200 |
| commit | dfb3ff9ccf36fa4f5ac51ad18f5c18270e39d6f3 (patch) | |
| tree | 2fb41e33decee54142e5376e0aef0a5aa9569db9 /hosts/laptop-nixos | |
| parent | a8c10d7c6cf42495e20edf95d1b6581eba4c76dd (diff) | |
Add swap file to hardware config
Diffstat (limited to 'hosts/laptop-nixos')
| -rw-r--r-- | hosts/laptop-nixos/hardware-configuration.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hosts/laptop-nixos/hardware-configuration.nix b/hosts/laptop-nixos/hardware-configuration.nix index f8cb10a..ac755f7 100644 --- a/hosts/laptop-nixos/hardware-configuration.nix +++ b/hosts/laptop-nixos/hardware-configuration.nix @@ -24,7 +24,10 @@ options = [ "fmask=0077" "dmask=0077" ]; }; - swapDevices = [ ]; + swapDevices = [ { + device = "/var/lib/swapfile"; + size = 16*1024; + } ]; # 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 |
