1
0
nixfiles/pkgs/clerie-sops/clerie-sops.nix

17 lines
328 B
Nix
Raw Permalink Normal View History

2024-04-20 23:20:14 +02:00
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "clerie-sops";
runtimeInputs = with pkgs; [
sops
clerie-sops-config
2024-04-20 23:20:14 +02:00
];
text = ''
REPO_ROOT="."
if GIT_ROOT=$(git rev-parse --show-toplevel); then
REPO_ROOT="$GIT_ROOT"
fi
exec sops --config <(clerie-sops-config "$REPO_ROOT") "$@"
2024-04-20 23:20:14 +02:00
'';
}