994e62f

Branches > main > 994e62f > files

Laptop - try to avoid OOMs

Grahp, 2026-10-14

Commit: 994e62f8ebf0c7fc967a8abd5f463d20dcca9d86
Parent: 88480cb

4 changed files:

.gitignore modified (view file)

@@ -4,6 +4,11 @@ !nixos/ !ghostty/ !i3/+!qutebrowser/+qutebrowser/autoconfig.yml+qutebrowser/qsettings/+qutebrowser/bookmarks/+qutebrowser/quickmarks !README.md nvim/pack/conjure/.clj-kondo/ nvim/pack/conjure/.lnvim.lua

nixos/machines/chromebook/configuration.nix modified (view file)

@@ -9,18 +9,34 @@   ];  +   boot.loader.systemd-boot.enable = true;   boot.loader.efi.canTouchEfiVariables = true;    home-manager.backupFileExtension = "backup-home";    networking.hostName = "chromebook";+  networking.firewall.allowedTCPPorts = [25565];    services.tlp.enable = true;   services.logind.lidSwitch = "suspend";    powerManagement.cpuFreqGovernor = "powersave"; +  ## Only 4GB RAM: compressed swap in RAM, and kill the hog early instead of freezing+  zramSwap = {+    enable = true;+    memoryPercent = 100;+  };+  boot.kernel.sysctl."vm.swappiness" = 180;++  services.earlyoom = {+    enable = true;+    freeMemThreshold = 5;+    enableNotifications = true;+  };+  systemd.oomd.enable = false;+   services.xserver.videoDrivers = ["amdgpu"];    services.usbmuxd = {

nixos/machines/chromebook/home.nix modified (view file)

@@ -51,8 +51,10 @@      acpi +    # REMOVE later     qutebrowser     librewolf+    luakit      jdk25     clojure

qutebrowser/config.py added (view file)

@@ -0,0 +1,23 @@+config.load_autoconfig(False)+c.tabs.show = "never"++config.unbind("o")+config.unbind("O")++config.bind("o", "cmd-set-text --space :open -t")+config.bind("O", "cmd-set-text --space :open")++# config.bind("space", "tab-select")+#+config.bind("t", "cmd-set-text --space :tab-select")+++c.aliases["q"] = "tab-close"+c.aliases["qa"] = "close"++c.statusbar.widgets = ["url", "progress"]++# Low-RAM settings for the chromebook+c.qt.chromium.process_model = "process-per-site"+c.qt.chromium.low_end_device_mode = "always"+c.session.lazy_restore = True