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 ];