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
./pidof.nix
./pipewire.nix
./pkill.nix
./planify.nix
./portfolio-filemanager.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"
"killall"
"playerctl"
"procps"
"procps" #< TODO: reduce to just those parts of procps which are really needed
"sane-open"
# "sway" #< TODO: circular dependency :-(
"wireplumber"

View File

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

View File

@@ -1,5 +1,5 @@
#!/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() {
echo "usage: sane-wipe <resource>"