Some checks are pending
/ check (push) Waiting to run
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
23 lines
415 B
Nix
23 lines
415 B
Nix
{
|
|
flake.modules.homeManager.base =
|
|
{ pkgs, ... }:
|
|
{
|
|
home.packages = [
|
|
(pkgs.writeShellApplication {
|
|
name = "onchange";
|
|
|
|
runtimeInputs = with pkgs; [
|
|
coreutils
|
|
entr
|
|
];
|
|
|
|
text = ''
|
|
PATTERN="$1"
|
|
shift 1
|
|
|
|
find . -path "$PATTERN" -type f | entr -cs "$@"
|
|
'';
|
|
})
|
|
];
|
|
};
|
|
}
|