diff options
author | Profpatsch <mail@profpatsch.de> | 2022-06-26 19:37:26 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2022-06-26 19:37:26 +0200 |
commit | 0f7d64a373f64e32da6689bd75c22204db7ca23b (patch) | |
tree | 9f6730661749ae126d99f1cd9bfe8d6f3ad34d24 /machines/profpatsch/base.nix | |
parent | 598149799fb572d4a57b743cea9962a9d3d67680 (diff) |
machines/Profpatsch: Move some stuff to base.nix
I use all of that on a regular basis. Earlyoom makes sense for any kind of machine without swap, which is all of my machines.
Diffstat (limited to 'machines/profpatsch/base.nix')
-rw-r--r-- | machines/profpatsch/base.nix | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/machines/profpatsch/base.nix b/machines/profpatsch/base.nix index 4232e4d5..9abb0a3c 100644 --- a/machines/profpatsch/base.nix +++ b/machines/profpatsch/base.nix @@ -17,6 +17,14 @@ in # /tmp should never be depended on boot.cleanTmpDir = true; + # the kernel OOM is not good enough without swap, + # and I don’t like swap. This kills the most hoggy + # processes when the system goes under a free space limit + services.earlyoom = { + enable = true; + freeMemThreshold = 5; # <5% free + }; + # bounded journal size services.journald.extraConfig = "SystemMaxUse=500M"; @@ -39,15 +47,22 @@ in environment.systemPackages = with pkgs; [ curl # transfer data to/from a URL + binutils # debugging binary files + dos2unix # text file conversion file # file information htop # top replacement + ncdu # disk size checker nmap # stats about clients in the network + man-pages # system manpages (not included by default) + mkpasswd # UNIX password creator + lr # list recursively, ls & find replacement + ripgrep # file content searcher, > ag > ack > grep rsync # file syncing tool strace # tracing syscalls tmux # detachable terminal multiplexer + traceroute # trace ip routes wget # the other URL file fetcher myPkgs.vim # slight improvement over vi - lr # list recursively, ls & find replacement xe # xargs with a modern interface ]; |