Add GPG import public key
This commit is contained in:
parent
ba37728d72
commit
d6727970ff
1 changed files with 9 additions and 0 deletions
|
@ -11,6 +11,14 @@
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
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" ''
|
init_sops = pkgs.writeScriptBin "init_sops" ''
|
||||||
#!${pkgs.runtimeShell}
|
#!${pkgs.runtimeShell}
|
||||||
|
|
||||||
|
@ -37,6 +45,7 @@
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgs.ansible
|
pkgs.ansible
|
||||||
pkgs.sops
|
pkgs.sops
|
||||||
|
import_pub_gpg
|
||||||
init_sops
|
init_sops
|
||||||
clean_sops
|
clean_sops
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Reference in a new issue