summaryrefslogtreecommitdiff
path: root/os/cez
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-08-29 18:53:09 +0530
committersinanmohd <sinan@sinanmohd.com>2024-08-29 18:53:20 +0530
commitcb07f1b1f83996b107118c14d1986ce03c0d6216 (patch)
tree2aa1fd75821dad115cc2e965ae81881491f41e90 /os/cez
parent1f85635197a521329ffb7b5b37820fece5a6d9c6 (diff)
common: enable swap
thanks for convincing me https://chrisdown.name/2018/01/02/in-defence-of-swap.html
Diffstat (limited to 'os/cez')
-rw-r--r--os/cez/hardware-configuration.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/cez/hardware-configuration.nix b/os/cez/hardware-configuration.nix
index 056f65a..90a73b9 100644
--- a/os/cez/hardware-configuration.nix
+++ b/os/cez/hardware-configuration.nix
@@ -11,6 +11,11 @@
hardware.amdgpu.initrd.enable = false;
services.xserver.videoDrivers = [ "modesetting" ];
+ swapDevices = [{
+ device = "/swapfile";
+ size = 14 * 1024; # 14GB
+ }];
+
boot = {
loader.systemd-boot.enable = true;
blacklistedKernelModules = [ "k10temp" ];