first commit
This commit is contained in:
commit
f9cc68899b
7 changed files with 228 additions and 0 deletions
11
modules/base.nix
Normal file
11
modules/base.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# Not strictly necessary, but nice to have.
|
||||
boot.tmp.useTmpfs = true;
|
||||
boot.tmp.tmpfsSize = "50%"; # Depends on the size of your storage.
|
||||
|
||||
# Reduces writes to hardware memory, which increases the lifespan
|
||||
# of an SSD.
|
||||
zramSwap.enable = true;
|
||||
zramSwap.memoryPercent = 150;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue