diff options
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/update.sh b/update.sh index cbec982..6ce5622 100755 --- a/update.sh +++ b/update.sh @@ -1,3 +1,12 @@ #!/usr/bin/env sh + +if [ -d "nixpkgs" ]; then + cd nixpkgs + git remote add upstream https://github.com/NixOS/nixpkgs || git remote set-url upstream https://github.com/NixOS/nixpkgs + git fetch --all -v + git rebase upstream/nixos-unstable -v + cd .. +fi + nix flake update ./build.sh / $HOSTNAME \ No newline at end of file |