fixed nix ref
This commit is contained in:
parent
1351320281
commit
67daa356ae
|
@ -2,7 +2,7 @@
|
||||||
let
|
let
|
||||||
microvms = {
|
microvms = {
|
||||||
staging-data-hoarder = {
|
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 fetch origin
|
||||||
git reset --hard origin/$BRANCH
|
git reset --hard origin/$BRANCH
|
||||||
else
|
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
|
cd $DIR_DUMP_DVB
|
||||||
fi
|
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
|
cd /tmp
|
||||||
if [ -d $DIR_NIX_CONFIG ]; then
|
if [ -d $DIR_NIX_CONFIG ]; then
|
||||||
|
@ -39,13 +41,11 @@ let
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git reset --hard origin/$BRANCH
|
git reset --hard origin/$BRANCH
|
||||||
else
|
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
|
cd $DIR_NIX_CONFIG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git config --global user.email "astro@spaceboyz.net"
|
nix flake update --commit-lock-file --override-input dump-dvb /tmp/$DIR_DUMP_DVB
|
||||||
git config --global user.name "Updater"
|
|
||||||
nix flake update --commit-lock-file --override-input dump-dvb ../$DIR_DUMP_DVB
|
|
||||||
''}/bin/realize-flake";
|
''}/bin/realize-flake";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue