diff options
| author | Fuwn <[email protected]> | 2024-10-28 09:58:10 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-28 09:58:10 -0700 |
| commit | 2fb6e0ffc7448602a28a57aec1f26127e1a05c6d (patch) | |
| tree | ca8a7d3e0395353edca7da5f2f5e9a411c0b9da5 /modules/usb/zram.nix | |
| parent | core: move simple programs to core (diff) | |
| download | nixos-config-2fb6e0ffc7448602a28a57aec1f26127e1a05c6d.tar.xz nixos-config-2fb6e0ffc7448602a28a57aec1f26127e1a05c6d.zip | |
kioku: move primary modules to modules
Diffstat (limited to 'modules/usb/zram.nix')
| -rw-r--r-- | modules/usb/zram.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/usb/zram.nix b/modules/usb/zram.nix new file mode 100644 index 0000000..d9df0a9 --- /dev/null +++ b/modules/usb/zram.nix @@ -0,0 +1,9 @@ +{ + zramSwap = { + enable = true; + priority = 100; + memoryMax = 268435456; + algorithm = "lz4"; + memoryPercent = 50; + }; +} |