Dotfiles : Perform local bootstrap.
This commit is contained in:
parent
734aca7677
commit
5c9302f047
|
@ -5,7 +5,17 @@
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = ''
|
script = ''
|
||||||
cd ~
|
cd ~
|
||||||
test -d .git || cp -r ${inputs.dotfiles}/{*,.*} .
|
test -d .git || {
|
||||||
|
cp -r ${inputs.dotfiles}/{*,.*} .
|
||||||
|
${pkgs.git}/bin/git init
|
||||||
|
${pkgs.git}/bin/git remote add origin https://git.voronind.com/voronind/linux.git
|
||||||
|
${pkgs.git}/bin/git fetch
|
||||||
|
${pkgs.git}/bin/git reset origin/main
|
||||||
|
${pkgs.git}/bin/git reset --hard HEAD
|
||||||
|
${pkgs.git}/bin/git checkout main
|
||||||
|
${pkgs.git}/bin/git branch --set-upstream-to=origin/main main
|
||||||
|
${pkgs.git}/bin/git branch -D master
|
||||||
|
};
|
||||||
${pkgs.git}/bin/git pull
|
${pkgs.git}/bin/git pull
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue