about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-12-14 10:06:01 -0800
committerFranck Cuny <franck@fcuny.net>2024-12-14 10:06:01 -0800
commit63cd3e94d3c204eab25b99cf59fa3841b9e8093d (patch)
tree2707bdedfdbcec200a8ebca785458d4170790429
parentuse agenix to manage secrets in the repository (diff)
downloadworld-63cd3e94d3c204eab25b99cf59fa3841b9e8093d.tar.gz
add recipe to edit secret
-rw-r--r--justfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/justfile b/justfile
index 18f5068..96ddc1e 100644
--- a/justfile
+++ b/justfile
@@ -21,6 +21,13 @@ test-nix:
 fmt:
 	nix fmt
 
+[group('secrets')]
+[doc('edit a secret')]
+[macos]
+secrets +args:
+	#!/etc/profiles/per-user/fcuny/bin/fish
+	cd secrets && agenix -e {{args}}.age -i (op read "op://Personal/nixos/private key?ssh-format=openssh"|psub)
+
 [group('machines')]
 [doc('build the configuration for the current host')]
 [macos]