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
"powertop"
"procs" # a better `ps`
"ps"
"pstree"
"ripgrep"
"rsync"
@@ -109,6 +108,7 @@ in
"subversion"
"tcpdump"
"tree"
"unixtools.ps"
"unixtools.xxd"
"usbutils" # lsusb
"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
"unixtools.ps".sandbox.keepPidsAndProc = true;
unzip.sandbox.autodetectCliPaths = "existingOrParent";
unzip.sandbox.whitelistPwd = true;

View File

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

View File

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