configuration
flake
hosts
lib
modules
pkgs
chromium-incognito
clerie-backup
clerie-keys
default.nix
clerie-sops
clerie-system-remote-install
clerie-system-upgrade
clerie-update-nixfiles
factorio-launcher
feeds-dir
git-checkout-github-pr
git-diff-word
git-pp
iot-data
nix-remove-result-links
nixfiles
overrides
print-afra
run-with-docker-group
ssh-gpg
update-from-hydra
uptimestatus
overlay.nix
users
.gitignore
README.md
flake.lock
flake.nix
15 lines
616 B
Nix
15 lines
616 B
Nix
{ runCommand, gnupg, ... }:
|
|
|
|
runCommand "clerie-keys" {
|
|
buildInputs = [ gnupg ];
|
|
} ''
|
|
mkdir -p $out/{ssh,gpg}
|
|
cp ${../../users/clerie/ssh.pub} $out/ssh/clerie_id.pub
|
|
|
|
export GNUPGHOME=$(pwd)
|
|
|
|
gpg --import-options import-export --armor -o $out/gpg/clerie@clerie.de.asc --import ${../../users/clerie/gpg.asc}
|
|
gpg --import-options import-export -o $out/gpg/clerie@clerie.de --import ${../../users/clerie/gpg.asc}
|
|
gpg --import-options show-only --with-colons --fingerprint --import ${../../users/clerie/gpg.asc} | awk -F: '$1 == "fpr" {print $10;}' | head -1 > $out/gpg/clerie@clerie.de.fingerprint.txt
|
|
''
|