Use nix flake update --commit-lock-file
This commit is contained in:
parent
f47d85b5a6
commit
7faea4abd5
|
@ -85,9 +85,8 @@ in
|
||||||
set -eu
|
set -eu
|
||||||
cd ${config.secrets.nixConfigFolder}
|
cd ${config.secrets.nixConfigFolder}
|
||||||
git pull --recurse-submodules
|
git pull --recurse-submodules
|
||||||
nix flake update
|
nix flake update --commit-lock-file
|
||||||
git add flake.lock
|
git push
|
||||||
git diff --quiet && git diff --staged --quiet || git commit -am "Update flake.lock" && git push # Courtesy of https://stackoverflow.com/a/40255467
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue