about summary refs log tree commit diff
path: root/machines/profpatsch
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2022-06-26 19:37:26 +0200
committerProfpatsch <mail@profpatsch.de>2022-06-26 19:37:26 +0200
commit0f7d64a373f64e32da6689bd75c22204db7ca23b (patch)
tree9f6730661749ae126d99f1cd9bfe8d6f3ad34d24 /machines/profpatsch
parent598149799fb572d4a57b743cea9962a9d3d67680 (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')
-rw-r--r--machines/profpatsch/base-workstation.nix16
-rw-r--r--machines/profpatsch/base.nix17
2 files changed, 16 insertions, 17 deletions
diff --git a/machines/profpatsch/base-workstation.nix b/machines/profpatsch/base-workstation.nix
index 300e7650..6d375d77 100644
--- a/machines/profpatsch/base-workstation.nix
+++ b/machines/profpatsch/base-workstation.nix
@@ -31,14 +31,6 @@ in {
       keyMap = "neo";
     };
 
-    # 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
-    };
-
     vuizvui.services.upower = {
       enable = true;
       settings = {
@@ -124,18 +116,10 @@ in {
     let
       # of utmost necessity for me to function
       basePkgs = [
-        ripgrep           # file content searcher, > ag > ack > grep
-        lr                # list recursively, ls & find replacement
-        dos2unix          # text file conversion
-        man-pages          # system manpages (not included by default)
-        mkpasswd          # UNIX password creator
-        ncdu              # disk size checker
         smartmontools     # check disk state
         stow              # dotfile management
-        traceroute        # trace ip routes
         wirelesstools     # iwlist (wifi scan)
         gitFull           # git with send-email
-        binutils          # debugging binary files
       ];
       # minimal set of gui applications
       guiPkgs = [
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
     ];