Add zram module

This commit is contained in:
Oliver Davies 2025-04-16 08:00:00 +01:00
parent b6ab926769
commit 16156312a1
2 changed files with 8 additions and 2 deletions

View file

@ -34,6 +34,7 @@ in
mixins-starship mixins-starship
mixins-thunar mixins-thunar
mixins-tmux mixins-tmux
mixins-zram
mixins-zsh mixins-zsh
profiles-dwm profiles-dwm
profiles-xbanish profiles-xbanish
@ -117,8 +118,6 @@ in
zoom-us zoom-us
]; ];
zramSwap.enable = true;
networking.hosts = { networking.hosts = {
"192.168.1.116" = [ "nixedo" ]; "192.168.1.116" = [ "nixedo" ];
}; };

7
modules/mixins/zram.nix Normal file
View file

@ -0,0 +1,7 @@
{
zramSwap = {
enable = true;
algorithm = "zstd";
memoryPercent = 90;
};
}