flake: Remove updateInputs app

Nix has support for committing the changes with `nix flake update
--commit-lock-file`.
pull/52/head
Simon Bruder 2021-05-13 17:01:37 +02:00
parent 7d4f84eda8
commit be8c942150
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 0 additions and 9 deletions

View File

@ -133,15 +133,6 @@
'')
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" ''
gpg --with-fingerprint --with-colons --show-key "keys/''${1}.asc" | awk -F: '$1 == "fpr" { print $10; exit }'
'';