summary refs log tree commit diff
path: root/update.sh
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-08-18 02:53:26 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-08-18 02:53:26 +0200
commit95ceb640e4de44994c265155464f81e1893dd394 (patch)
treed500f8130892f71c055c16b8cf2dbda771444bf2 /update.sh
parentUpdate stuff (diff)
downloadRory-Open-Architecture-95ceb640e4de44994c265155464f81e1893dd394.tar.xz
Refactor
Diffstat (limited to '')
-rwxr-xr-xupdate.sh9
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