flake: Remove updateInputs app
Nix has support for committing the changes with `nix flake update --commit-lock-file`.
This commit is contained in:
parent
7d4f84eda8
commit
be8c942150
|
@ -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 }'
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue