From 65a10ee991c35bd2e2613deee45c2eeeb14d04fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 14 Nov 2025 11:57:46 +0100 Subject: Enable zramswap on desktops --- nixos/configurations/errol.nix | 5 +++++ nixos/configurations/ridcully.nix | 23 +++++++++++------------ nixos/modules/desktop.nix | 2 +- 3 files changed, 17 insertions(+), 13 deletions(-) (limited to 'nixos') diff --git a/nixos/configurations/errol.nix b/nixos/configurations/errol.nix index ef634fb..e45fae5 100644 --- a/nixos/configurations/errol.nix +++ b/nixos/configurations/errol.nix @@ -9,6 +9,11 @@ hardware.cpu.amd.updateMicrocode = true; services.hardware.openrgb.motherboard = "amd"; + zramSwap = { + enable = true; + memoryPercent = 50; + }; + cynerd.autounlock = { "encroot" = "/dev/disk/by-uuid/7c412ae6-6016-45af-8c2a-8fcc394dbbe6"; "enchdd1" = "/dev/disk/by-uuid/87f16080-5ff6-43dd-89f3-307455a46fbe"; diff --git a/nixos/configurations/ridcully.nix b/nixos/configurations/ridcully.nix index 03b615b..97a0456 100644 --- a/nixos/configurations/ridcully.nix +++ b/nixos/configurations/ridcully.nix @@ -1,6 +1,6 @@ {pkgs, ...}: { system.stateVersion = "24.05"; - nixpkgs.hostPlatform.config = "x86_64-linux"; + nixpkgs.hostPlatform.system = "x86_64-linux"; deploy.enable = true; cynerd = { @@ -18,6 +18,10 @@ hardware.cpu.amd.updateMicrocode = true; services.hardware.openrgb.motherboard = "amd"; + zramSwap = { + enable = true; + memoryPercent = 50; + }; cynerd.autounlock = { "encroot" = "/dev/disk/by-uuid/bc7d2ba4-6e04-4c49-b40c-3aecd1a86c71"; @@ -64,22 +68,17 @@ wait-online.enable = false; }; - environment.systemPackages = with pkgs; [ - nvtopPackages.amd - sbctl + environment.systemPackages = [ + pkgs.nvtopPackages.amd + #sbctl ]; - services.syncthing = { - enable = true; - dataDir = "/home/cynerd"; - }; - # Force nix to use less jobs nix.settings.max-jobs = 4; - # Cover case when we are running out of memory - zramSwap = { + ############################################################################## + services.syncthing = { enable = true; - memoryPercent = 50; + dataDir = "/home/cynerd"; }; } diff --git a/nixos/modules/desktop.nix b/nixos/modules/desktop.nix index 0b0b7c6..ed8ef2b 100644 --- a/nixos/modules/desktop.nix +++ b/nixos/modules/desktop.nix @@ -146,7 +146,7 @@ in { gimp inkscape blender - tenacity + #tenacity #kdePackages.kdenlive # GStreamer -- cgit v1.2.3