elitak / nixos-infect

[GPLv3+] install nixos over the existing OS in a DigitalOcean droplet (and others with minor modifications)
GNU General Public License v3.0
1.33k stars 215 forks source link

Enable `zramSwap.enable` by default #86

Closed kidonng closed 2 years ago

kidonng commented 2 years ago

nixos-rebuild may consume more than 1GB memory even on a freshly-installed NixOS machine. This causes some "budget" machine with insufficient (e.g. less than 1GB) memory suffer from frequent interruption due to nix being killed by LMK. nixos-infect does enable extra swap during installation, but this is not the case with the new system.

Enabling zram (via zramSwap.enable) would make it less painful for those machines. Also it is recommended for most machines since the advantages surpass the disadvantages.