From 8d64b1593b72d8384edb918f27c1dedfa0b82043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 16 Jun 2023 09:22:31 +0200 Subject: [PATCH] replace nix-shell with nix run to get sops-init-gpg-key fixes https://github.com/Mic92/sops-nix/issues/344 --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5c4484b..9672ffa 100644 --- a/README.md +++ b/README.md @@ -795,8 +795,7 @@ The secrets are decrypted in a systemd user service called `sops-nix`, so other If you prefer having a separate GPG key, sops-nix also comes with a helper tool, `sops-init-gpg-key`: ```console -$ nix-shell -p sops-init-gpg-key -$ sops-init-gpg-key --hostname server01 --gpghome /tmp/newkey +$ nix run github:Mic92/sops-nix#sops-init-gpg-key -- --hostname server01 --gpghome /tmp/newkey # You can use the following command to save it to a file: $ cat > server01.asc < server01.asc <