From 6411f2f5d9c9468a7d723fd7d4ac0215448bcdc6 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 28 Apr 2024 09:36:11 +0900 Subject: [PATCH] Add a script to update all keys --- home-manager/common/software/cli/bash.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home-manager/common/software/cli/bash.nix b/home-manager/common/software/cli/bash.nix index f1d4b6cd..fa8bac68 100644 --- a/home-manager/common/software/cli/bash.nix +++ b/home-manager/common/software/cli/bash.nix @@ -50,6 +50,11 @@ # SSH_ASKPASS = ""; }; bashrcExtra = '' + update_secrets() { + pushd /etc/nixos/git + nix develop -c \ + find secrets -name "*.yaml" -exec sops updatekeys {} \; + } restart-docker() { pushd /Storage/Data/docker-compose/sysctl.io/ docker stop $1