mirror of
https://github.com/smg1024/homelab.git
synced 2026-05-22 20:32:58 +09:00
add zram swap module
This commit is contained in:
parent
ab2e8d05fd
commit
ab2d4251d1
2 changed files with 10 additions and 0 deletions
|
|
@ -42,6 +42,7 @@
|
||||||
modules = [
|
modules = [
|
||||||
./modules/base.nix
|
./modules/base.nix
|
||||||
./modules/gc.nix
|
./modules/gc.nix
|
||||||
|
./modules/swap.nix
|
||||||
./modules/users.nix
|
./modules/users.nix
|
||||||
./modules/ssh.nix
|
./modules/ssh.nix
|
||||||
./modules/tailscale.nix
|
./modules/tailscale.nix
|
||||||
|
|
|
||||||
9
modules/swap.nix
Normal file
9
modules/swap.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
algorithm = "zstd";
|
||||||
|
memoryPercent = 50;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue