1
0
Fork 0

Use nix flake update --commit-lock-file

This commit is contained in:
Aires 2024-05-30 23:22:49 -04:00
parent f47d85b5a6
commit 7faea4abd5

View file

@ -85,9 +85,8 @@ in
set -eu
cd ${config.secrets.nixConfigFolder}
git pull --recurse-submodules
nix flake update
git add flake.lock
git diff --quiet && git diff --staged --quiet || git commit -am "Update flake.lock" && git push # Courtesy of https://stackoverflow.com/a/40255467
nix flake update --commit-lock-file
git push
'';
};