flake: Remove updateInputs app

Nix has support for committing the changes with `nix flake update
--commit-lock-file`.
This commit is contained in:
Simon Bruder 2021-05-13 17:01:37 +02:00
parent 7d4f84eda8
commit be8c942150
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -133,15 +133,6 @@
'') '')
self.nixosConfigurations); self.nixosConfigurations);
updateInputs = pkgs.writeShellScript "update-inputs" ''
set -e
git diff --exit-code -s flake.lock || (echo "Lockfile has unstaged changes, refusing to update." >&2 && exit 1)
git diff --cached --exit-code -s flake.lock || (echo "Lockfile has staged changes, refusing to update." >&2 && exit 1)
nix flake update
git diff --exit-code -s flake.lock && echo "Already up to date." && exit 0
git commit -m "Update flake inputs" flake.lock
'';
showKeyFingerprint = pkgs.writeShellScript "show-key-fingerprint" '' showKeyFingerprint = pkgs.writeShellScript "show-key-fingerprint" ''
gpg --with-fingerprint --with-colons --show-key "keys/''${1}.asc" | awk -F: '$1 == "fpr" { print $10; exit }' gpg --with-fingerprint --with-colons --show-key "keys/''${1}.asc" | awk -F: '$1 == "fpr" { print $10; exit }'
''; '';