From bdfa33ce685f3afb2357f2f8b349a860c435c291 Mon Sep 17 00:00:00 2001 From: Gerg-L Date: Thu, 3 Apr 2025 20:28:54 -0400 Subject: [PATCH] feat: clean-bootloader alias fix: gc-check print only first column --- nixosModules/shell.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixosModules/shell.nix b/nixosModules/shell.nix index 34cc22d..009d25e 100644 --- a/nixosModules/shell.nix +++ b/nixosModules/shell.nix @@ -17,7 +17,8 @@ pastebin = "curl -F 'clbin=<-' https://clbin.com"; termbin = "nc termbin.com 9999"; #nix stuff - gc-check = ''nix-store --gc --print-roots | egrep -v "^(/nix/var|/run/w+-system|{memory|/proc)"''; + gc-check = "nix-store --gc --print-roots | awk '{print $1}' | rg -v '^/(run/.*-system|proc|nix/var)'"; + clean-bootloader = "/run/current-system/bin/switch-to-configuration boot"; #vim stuff vi = "nvim"; vim = "nvim";