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:
@@ -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;
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -1,7 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
sane.programs.ps = {
|
|
||||||
packageUnwrapped = pkgs.linkBinIntoOwnPackage pkgs.procps "ps";
|
|
||||||
sandbox.keepPidsAndProc = true;
|
|
||||||
};
|
|
||||||
}
|
|
Reference in New Issue
Block a user