Add zram module
This commit is contained in:
parent
b6ab926769
commit
16156312a1
2 changed files with 8 additions and 2 deletions
|
@ -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
7
modules/mixins/zram.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
algorithm = "zstd";
|
||||||
|
memoryPercent = 90;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue