sane-wipe: fix so pkill is available
This commit is contained in:
@@ -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
|
||||||
|
8
hosts/common/programs/pkill.nix
Normal file
8
hosts/common/programs/pkill.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
sane.programs.pkill = {
|
||||||
|
packageUnwrapped = pkgs.linkIntoOwnPackage pkgs.procps "bin/pkill";
|
||||||
|
sandbox.method = "bwrap";
|
||||||
|
sandbox.isolatePids = false;
|
||||||
|
};
|
||||||
|
}
|
@@ -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"
|
||||||
|
@@ -279,5 +279,6 @@ in
|
|||||||
".persist/private/.mozilla"
|
".persist/private/.mozilla"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
"sane-scripts.wipe".suggestedPrograms = [ "pkill" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -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>"
|
||||||
|
Reference in New Issue
Block a user