From aa41228d2737fb9a5c8387feb0711c1fcfa342a3 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 25 Aug 2026 12:19:57 -0400 Subject: [PATCH] fixing hibernation --- configs/niri/dms/cursor.kdl | 10 ++++++++++ hosts/fwbook.hardware-configuration.nix | 13 ++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/configs/niri/dms/cursor.kdl b/configs/niri/dms/cursor.kdl index e69de29..55d25d4 100644 --- a/configs/niri/dms/cursor.kdl +++ b/configs/niri/dms/cursor.kdl @@ -0,0 +1,10 @@ +// ! DO NOT EDIT ! +// ! AUTO-GENERATED BY DMS ! +// ! CHANGES WILL BE OVERWRITTEN ! +// ! PLACE YOUR CUSTOM CONFIGURATION ELSEWHERE ! + +cursor { + xcursor-theme "Adwaita" + xcursor-size 24 + hide-when-typing +} \ No newline at end of file diff --git a/hosts/fwbook.hardware-configuration.nix b/hosts/fwbook.hardware-configuration.nix index 947d823..b641ff1 100644 --- a/hosts/fwbook.hardware-configuration.nix +++ b/hosts/fwbook.hardware-configuration.nix @@ -78,7 +78,18 @@ fsType = "vfat"; options = [ "fmask=0022" "dmask=0022" ]; }; - swapDevices = [{ device = "/swap/swapfile"; }]; + # Disk swapfile on @swap is unused; zram is the only swap. + # After switch: `swapoff /swap/swapfile && rm /swap/swapfile` to reclaim 64G. + swapDevices = [ ]; + zramSwap = { + enable = true; + algorithm = "zstd"; + memoryPercent = 50; + }; + boot.kernel.sysctl = { + "vm.swappiness" = 150; + "vm.page-cluster" = 0; + }; networking.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode =