System/modules/common.nix

19 lines
359 B
Nix
Raw Normal View History

2021-12-20 13:37:26 -05:00
{ config, pkgs, ... }:
{
# Turn on compressed memory swap
zramSwap = {
enable = true;
2022-01-10 02:27:04 -05:00
algorithm = "lz4";
2021-12-20 13:37:26 -05:00
memoryPercent = 25;
};
# Automatically optimize and garbage collect the store
nix = {
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
};
}