nix-conf/home/scripts/ntfy.nix
2026-01-10 12:46:40 +08:00

15 lines
223 B
Nix
Executable file

{
config,
pkgs,
lib,
}:
let
inherit (lib) getExe';
in
pkgs.writeShellScriptBin "ntfy" ''
set -o allexport
source "${config.sops.secrets."ntfy".path}"
set +o allexport
${getExe' pkgs.ntfy-sh "ntfy"} "$@"
''