configuration
flake
hosts
lib
modules
pkgs
chromium-incognito
clerie-backup
clerie-keys
clerie-sops
clerie-sops-config.nix
clerie-sops-config.py
clerie-sops-edit.nix
clerie-sops-edit.sh
clerie-sops.nix
clerie-system-remote-install
clerie-system-upgrade
clerie-update-nixfiles
factorio-launcher
feeds-dir
git-checkout-github-pr
git-diff-word
git-pp
git-show-link
iot-data
nix-remove-result-links
nixfiles
overrides
print-afra
run-with-docker-group
ssh-gpg
update-from-hydra
uptimestatus
overlay.nix
pkgs.nix
users
.gitignore
README.md
flake.lock
flake.nix
17 lines
328 B
Nix
17 lines
328 B
Nix
{ pkgs, ... }:
|
|
|
|
pkgs.writeShellApplication {
|
|
name = "clerie-sops";
|
|
runtimeInputs = with pkgs; [
|
|
sops
|
|
clerie-sops-config
|
|
];
|
|
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") "$@"
|
|
'';
|
|
}
|