fixed nix ref

This commit is contained in:
Tassilo - 2022-07-13 20:39:21 +02:00
parent 1351320281
commit 67daa356ae
Signed by: revol-xut
GPG Key ID: 4F56FF7759627D07
1 changed files with 7 additions and 7 deletions

View File

@ -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
{