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 =