My NixOS and Home Manager configurations

create mirror action

quasigod.xyz 1a4581bb dd21ba20

verified
+45
+45
.tangled/workflows/mirror.yaml
··· 1 + when: 2 + - event: [ "push", "manual" ] 3 + branch: [ "main" ] 4 + 5 + dependencies: 6 + nixpkgs: 7 + - git 8 + - openssh 9 + 10 + engine: "nixery" 11 + 12 + clone: 13 + depth: 99999999 14 + 15 + steps: 16 + - name: create ssh dir 17 + command: | 18 + mkdir ~/.ssh 19 + - name: write codeberg key 20 + command: | 21 + echo $CODEBERG_DEPLOY_KEY > ~/.ssh/codeberg 22 + - name: write github key 23 + command: | 24 + echo $GITHUB_DEPLOY_KEY > ~/.ssh/github 25 + - name: set ssh permissions 26 + command: | 27 + chmod -R 600 ~/.ssh 28 + 29 + - name: add codeberg remote 30 + command: | 31 + git remote add codeberg ssh://git@codeberg.org/quasigod/nixconfig.git 32 + - name: push to codeberg 33 + environment: 34 + GIT_SSH_COMMAND: "ssh -v -i ~/.ssh/codeberg -o StrictHostKeyChecking=no -l git" 35 + command: | 36 + git push codeberg --mirror 37 + 38 + - name: add github remote 39 + command: | 40 + git remote add github git@github.com:michaelBelsanti/nixconfig.git 41 + - name: push to githuub 42 + environment: 43 + GIT_SSH_COMMAND: "ssh -v -i ~/.ssh/github -o StrictHostKeyChecking=no -l git" 44 + command: | 45 + git push github --mirror