From 391582525884b653260131b18807f1a61ef97753 Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Sat, 14 Mar 2026 17:20:21 -0700 Subject: [PATCH 1/2] feat: a ton of performance and qol improvements --- configuration.nix | 10 ++++++++-- home.nix | 20 ++++++++++++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index 9405013..1a93090 100644 --- a/configuration.nix +++ b/configuration.nix @@ -6,7 +6,8 @@ boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.configurationLimit = 3; boot.loader.efi.canTouchEfiVariables = true; - boot.loader.timeout = 0; + boot.loader.timeout = 1; + boot.loader.systemd-boot.consoleMode = "max"; networking.hostName = "framework"; @@ -142,8 +143,10 @@ # Enable periodic TRIM for NVMe/SSD health services.fstrim.enable = true; + services.irqbalance.enable = true; + services.earlyoom.enable = true; - # Keep only last 10 generations, GC everything else (daily) + # Keep only last 3 generations, GC everything else (daily) systemd.services.nix-cleanup = { description = "Nix generation cleanup and garbage collection"; serviceConfig.Type = "oneshot"; @@ -204,6 +207,9 @@ "vm.vfs_cache_pressure" = 50; # Keep more filesystem cache in RAM "vm.dirty_ratio" = 15; # Write to disk when 15% of RAM is dirty "vm.dirty_background_ratio" = 5; # Start writing when 5% dirty + "kernel.nmi_watchdog" = 0; + "net.core.default_qdisc" = "fq"; + "net.ipv4.tcp_congestion_control" = "bbr"; }; # Use RAM disk (tmpfs) for temporary files - much faster than disk diff --git a/home.nix b/home.nix index c612b75..a4ab962 100644 --- a/home.nix +++ b/home.nix @@ -66,13 +66,17 @@ # CLI bat claude-code + fd + btop fastfetch gh hyfetch + jq mkp224o nixfmt ripgrep tea + trash-cli tree unzip @@ -145,6 +149,11 @@ }; }; + programs.starship = { + enable = true; + enableBashIntegration = true; + }; + programs.zellij = { enable = true; enableBashIntegration = true; @@ -177,6 +186,11 @@ ]; }; + programs.fzf = { + enable = true; + enableBashIntegration = true; + }; + programs.zoxide = { enable = true; enableBashIntegration = true; @@ -190,6 +204,7 @@ programs.bash = { enable = true; + enableCompletion = true; shellAliases = { "dr" = "direnv reload"; "da" = "direnv allow"; @@ -212,6 +227,7 @@ jdiff = "jj diff"; jsq = "jj squash"; h = "hx"; + t = "trash"; vanity = "mkp224o-amd64-64-24k -d noisebridgevanitytor noisebridge{2..7}"; }; initExtra = '' @@ -250,8 +266,8 @@ settings = { remotes.origin.auto-track-bookmarks = "glob:*"; user = { - email = "jetthomaspham@gmail.com"; - name = "Jet Pham"; + email = "jet@extremist.software"; + name = "Jet"; }; signing = { From 755ec04d04bdc9b47a6c7c7a73111b7d125efe69 Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Sat, 14 Mar 2026 17:24:36 -0700 Subject: [PATCH 2/2] feat: add difftastic --- home.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home.nix b/home.nix index a4ab962..2c14eb4 100644 --- a/home.nix +++ b/home.nix @@ -74,6 +74,7 @@ jq mkp224o nixfmt + difftastic ripgrep tea trash-cli @@ -284,6 +285,7 @@ editor = "hx"; pager = "bat --style=plain"; }; + diff.tool = [ "difft" "--color=always" "$left" "$right" ]; }; };