mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 10:16:33 +01:00
Update sync-script
This commit is contained in:
parent
df376a60c8
commit
47d01db277
1 changed files with 7 additions and 1 deletions
|
@ -12,10 +12,16 @@
|
||||||
|
|
||||||
systemd.services."repo-sync" = {
|
systemd.services."repo-sync" = {
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.git}/bin/git -C /var/lib/repo-sync pull -r codeberg main
|
${pkgs.coreutils}/bin/rm -r /var/lib/repo-sync
|
||||||
|
${pkgs.git}/bin/git clone git@codeberg.org:jopejoe1/nix-conf.git /var/lib/repo-sync
|
||||||
|
${pkgs.git}/bin/git -C /var/lib/repo-sync remote add github git@github.com:jopejoe1/nix-conf.git
|
||||||
|
${pkgs.git}/bin/git -C /var/lib/repo-sync remote add gitlab git@gitlab.com:jopejoe1/nix-conf.git
|
||||||
${pkgs.git}/bin/git -C /var/lib/repo-sync pull -r github main
|
${pkgs.git}/bin/git -C /var/lib/repo-sync pull -r github main
|
||||||
${pkgs.git}/bin/git -C /var/lib/repo-sync pull -r gitlab main
|
${pkgs.git}/bin/git -C /var/lib/repo-sync pull -r gitlab main
|
||||||
${pkgs.git}/bin/git -C /var/lib/repo-sync push origin
|
${pkgs.git}/bin/git -C /var/lib/repo-sync push origin
|
||||||
|
${pkgs.git}/bin/git -C /var/lib/repo-sync push github
|
||||||
|
${pkgs.git}/bin/git -C /var/lib/repo-sync push gitlab
|
||||||
|
${pkgs.coreutils}/bin/rm -r /var/lib/repo-sync
|
||||||
'';
|
'';
|
||||||
path = [pkgs.openssh];
|
path = [pkgs.openssh];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
Loading…
Reference in a new issue