1
0
Fork 0

Compare commits

..

2 commits

View file

@ -84,10 +84,8 @@ in
cd ${config.secrets.nixConfigFolder} cd ${config.secrets.nixConfigFolder}
# Make sure we're up-to-date # Make sure we're up-to-date
git pull --recurse-submodules git pull --recurse-submodules
nix flake update nix flake update --commit-lock-file
git add flake.lock git push
# Only commit and push if the lock file has changed, otherwise quietly exit
git diff --quiet && git diff --staged --quiet || git commit -am "Update flake.lock" && git push
''; '';
}; };