refactor: replace ps with unixtools.ps, which is just nixpkgs upstream logic that does exactly what i was doing to extract it from procps

This commit is contained in:
2024-12-04 22:47:49 +00:00
parent aa82d50879
commit 7de16fa95b
3 changed files with 3 additions and 9 deletions

View File

@@ -97,7 +97,6 @@ in
"picocom" # serial TTY "picocom" # serial TTY
"powertop" "powertop"
"procs" # a better `ps` "procs" # a better `ps`
"ps"
"pstree" "pstree"
"ripgrep" "ripgrep"
"rsync" "rsync"
@@ -109,6 +108,7 @@ in
"subversion" "subversion"
"tcpdump" "tcpdump"
"tree" "tree"
"unixtools.ps"
"unixtools.xxd" "unixtools.xxd"
"usbutils" # lsusb "usbutils" # lsusb
"util-linux" # lsblk, lscpu, etc "util-linux" # lsblk, lscpu, etc
@@ -1159,6 +1159,8 @@ in
util-linux.sandbox.method = null; #< TODO: possible to sandbox if i specify a different profile for each of its ~50 binaries util-linux.sandbox.method = null; #< TODO: possible to sandbox if i specify a different profile for each of its ~50 binaries
"unixtools.ps".sandbox.keepPidsAndProc = true;
unzip.sandbox.autodetectCliPaths = "existingOrParent"; unzip.sandbox.autodetectCliPaths = "existingOrParent";
unzip.sandbox.whitelistPwd = true; unzip.sandbox.whitelistPwd = true;

View File

@@ -144,7 +144,6 @@
./planify.nix ./planify.nix
./portfolio-filemanager.nix ./portfolio-filemanager.nix
./playerctl.nix ./playerctl.nix
./ps.nix
./qmk-udev-rules.nix ./qmk-udev-rules.nix
./rhythmbox.nix ./rhythmbox.nix
./ripgrep.nix ./ripgrep.nix

View File

@@ -1,7 +0,0 @@
{ pkgs, ... }:
{
sane.programs.ps = {
packageUnwrapped = pkgs.linkBinIntoOwnPackage pkgs.procps "ps";
sandbox.keepPidsAndProc = true;
};
}