From 57f015434610d3b0c5052e7b621a13800779b637 Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 9 Apr 2025 15:31:18 +0200 Subject: [PATCH 1/3] boot/module.nix: enable tmpFs --- modules/system/boot/module.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/system/boot/module.nix b/modules/system/boot/module.nix index 882b70d..275fa5d 100644 --- a/modules/system/boot/module.nix +++ b/modules/system/boot/module.nix @@ -25,6 +25,7 @@ in { } ]; boot = { + tmp.useTmpfs = true; initrd = { verbose = true; systemd.enable = true; From af81a943cab93748feaa7cac97b2e2a0d2510a4c Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 9 Apr 2025 15:31:18 +0200 Subject: [PATCH 2/3] ram/module.nix: enable zramswap --- modules/system/hardware/ram/module.nix | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 modules/system/hardware/ram/module.nix diff --git a/modules/system/hardware/ram/module.nix b/modules/system/hardware/ram/module.nix new file mode 100644 index 0000000..a2ff6df --- /dev/null +++ b/modules/system/hardware/ram/module.nix @@ -0,0 +1,6 @@ +_: { + zramSwap = { + enable = true; + algorithm = "zstd"; + }; +} From 741a77417aae85da4ce37cb8dee85cca7be4a74f Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Wed, 9 Apr 2025 15:31:18 +0200 Subject: [PATCH 3/3] hardware/module.nix: enable irqbalance This makes the system responsive even under load. --- modules/system/hardware/module.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/hardware/module.nix b/modules/system/hardware/module.nix index da4c82d..6efca34 100644 --- a/modules/system/hardware/module.nix +++ b/modules/system/hardware/module.nix @@ -1 +1,5 @@ -_: {imports = [./bluetooth.nix ./keyboard ./graphics.nix];} +_: { + imports = [./bluetooth.nix ./keyboard ./graphics.nix]; + + services.irqbalance.enable = true; +}