diff --git a/hosts/server10/microvm-staging.nix b/hosts/server10/microvm-staging.nix index e14ef7df..4031b354 100644 --- a/hosts/server10/microvm-staging.nix +++ b/hosts/server10/microvm-staging.nix @@ -2,7 +2,7 @@ let microvms = { staging-data-hoarder = { - flakeref = "git+file:///tmp/dvb-dump"; + flakeref = "git+file:///tmp/dvb-nix-config"; }; }; @@ -28,10 +28,12 @@ let git fetch origin git reset --hard origin/$BRANCH else - git clone -b $BRANCH --single-branch $SRC $DIR_DUMP_DVB + git clone -b $BRANCH --single-branch $SRC_DUMP_DVB $DIR_DUMP_DVB cd $DIR_DUMP_DVB fi - nix flake update + git config --global user.email "astro@spaceboyz.net" + git config --global user.name "Updater" + nix flake update --commit-lock-file cd /tmp if [ -d $DIR_NIX_CONFIG ]; then @@ -39,13 +41,11 @@ let git fetch origin git reset --hard origin/$BRANCH else - git clone -b $BRANCH --single-branch $SRC $DIR_NIX_CONFIG + git clone -b $BRANCH --single-branch $SRC_NIX_CONFIG $DIR_NIX_CONFIG cd $DIR_NIX_CONFIG fi - git config --global user.email "astro@spaceboyz.net" - git config --global user.name "Updater" - nix flake update --commit-lock-file --override-input dump-dvb ../$DIR_DUMP_DVB + nix flake update --commit-lock-file --override-input dump-dvb /tmp/$DIR_DUMP_DVB ''}/bin/realize-flake"; in {