Dotfiles : Perform local bootstrap.

This commit is contained in:
Dmitry Voronin 2024-02-20 22:10:08 +03:00
parent 734aca7677
commit 5c9302f047

View file

@ -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
''; '';
}; };