diff --git a/hosts/FredOS-Eee.nix b/hosts/FredOS-Eee.nix index 87d17db..1a1ec2b 100644 --- a/hosts/FredOS-Eee.nix +++ b/hosts/FredOS-Eee.nix @@ -98,8 +98,11 @@ in # WebKit is the only engine left that handles the modern web. environment.systemPackages = [ pkgs.epiphany ]; - # 1GB RAM: compressed swap in front of the disk swap. + # 1GB RAM: compressed swap only (disk swap is off, see hardware file). zramSwap.enable = true; + # A heavy page (bbc.co.uk) used to freeze everything; now the biggest + # process (the browser's web process) dies instead. + services.earlyoom.enable = true; # The NixOS manual is a big from-source build on i686 for a page nobody reads. documentation.nixos.enable = false; diff --git a/hosts/hardware/FredOS-Eee.nix b/hosts/hardware/FredOS-Eee.nix index 18aef4e..1490e32 100644 --- a/hosts/hardware/FredOS-Eee.nix +++ b/hosts/hardware/FredOS-Eee.nix @@ -23,9 +23,9 @@ fsType = "ext4"; }; - swapDevices = [ - { device = "/dev/disk/by-uuid/32ca4097-0ea0-4594-998c-c5756591530e"; } - ]; + # sda2 (uuid 32ca4097-…) is swap but left off: paging a browser to this disk + # froze the box for minutes. zram only, so earlyoom fires before a thrash. + swapDevices = [ ]; nixpkgs.hostPlatform = "i686-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;