From d6727970ff9c6152e02d5155e0fceae13108fa6b Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 14 Jul 2024 22:54:31 +0200 Subject: [PATCH] Add GPG import public key --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flake.nix b/flake.nix index a994a68..e4c544c 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,14 @@ let pkgs = import nixpkgs { inherit system; }; + import_pub_gpg = pkgs.writeScriptBin "import_pub_gpg" '' + #!${pkgs.runtimeShell} + + echo "Importing public key" + gpg --import <(curl https://gitea.mrdev023.fr/florian.richer.gpg) + ''; + + init_sops = pkgs.writeScriptBin "init_sops" '' #!${pkgs.runtimeShell} @@ -37,6 +45,7 @@ buildInputs = [ pkgs.ansible pkgs.sops + import_pub_gpg init_sops clean_sops ];