sane-wipe: fix so pkill is available

This commit is contained in:
2024-06-26 11:00:19 +00:00
parent 8b7ed2cdd4
commit a75a341b56
5 changed files with 12 additions and 2 deletions

View File

@@ -110,6 +110,7 @@
./pactl.nix ./pactl.nix
./pidof.nix ./pidof.nix
./pipewire.nix ./pipewire.nix
./pkill.nix
./planify.nix ./planify.nix
./portfolio-filemanager.nix ./portfolio-filemanager.nix
./playerctl.nix ./playerctl.nix

View File

@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
sane.programs.pkill = {
packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.procps "bin/pkill";
sandbox.method = "bwrap";
sandbox.isolatePids = false;
};
}

View File

@@ -83,7 +83,7 @@ in
"jq" "jq"
"killall" "killall"
"playerctl" "playerctl"
"procps" "procps" #< TODO: reduce to just those parts of procps which are really needed
"sane-open" "sane-open"
# "sway" #< TODO: circular dependency :-( # "sway" #< TODO: circular dependency :-(
"wireplumber" "wireplumber"

View File

@@ -279,5 +279,6 @@ in
".persist/private/.mozilla" ".persist/private/.mozilla"
]; ];
}; };
"sane-scripts.wipe".suggestedPrograms = [ "pkill" ];
}; };
} }

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell #!/usr/bin/env nix-shell
#!nix-shell -i bash -p bash -p dconf -p libsecret -p s6-rc #!nix-shell -i bash -p bash -p dconf -p libsecret -p procps -p s6-rc
help() { help() {
echo "usage: sane-wipe <resource>" echo "usage: sane-wipe <resource>"