Add a script to update all keys
This commit is contained in:
parent
ddfbbbe762
commit
6411f2f5d9
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue