Add a script to update all keys

This commit is contained in:
albert 2024-04-28 09:36:11 +09:00
parent ddfbbbe762
commit 6411f2f5d9
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A

View file

@ -50,6 +50,11 @@
# SSH_ASKPASS = ""; # SSH_ASKPASS = "";
}; };
bashrcExtra = '' bashrcExtra = ''
update_secrets() {
pushd /etc/nixos/git
nix develop -c \
find secrets -name "*.yaml" -exec sops updatekeys {} \;
}
restart-docker() { restart-docker() {
pushd /Storage/Data/docker-compose/sysctl.io/ pushd /Storage/Data/docker-compose/sysctl.io/
docker stop $1 docker stop $1