refresh tailscale

This commit is contained in:
Cyryl Płotnicki 2023-03-05 11:12:50 +00:00
parent e4f3102cf2
commit fa1b01110f
3 changed files with 6 additions and 5 deletions

View file

@ -7,7 +7,6 @@
./thermal.nix
../../backups.nix
../../boot.nix
../../distributed-builds.nix
../../gfx-intel-dri2.nix
../../git
../../gnome

View file

@ -30,9 +30,11 @@ in {
status="$(${tailscale}/bin/tailscale status -json | ${pkgs.jq}/bin/jq -r .BackendState)"
if [ $status = "Running" ]; then # if so, then do nothing
echo "already connected"
exit 0
fi
echo "$status, reauthing"
${tailscale}/bin/tailscale up --force-reauth --authkey `cat /run/secrets/tailscale-key-${config.networking.hostName}`
'';
};

View file

@ -1,6 +1,6 @@
tailscale-key-foureighty: ENC[AES256_GCM,data:g9q3+2a6sCDlHihdIZZALpnGMSP4Qy0nkspC3+anQDLajE0o2VFc4BMT54qu6BOpHZM5tRQ15Dc=,iv:pN84YxqWBF/JL9BEAvhWNi9U7uWj5BgwrDvvmHAmwuk=,tag:iJR6iwnoXrAkKOwC/GjBDQ==,type:str]
tailscale-key-bolty: ENC[AES256_GCM,data:Qu2MijnJvIM5I937EBIb8EXlcmNuoxUCVJl5h/KempcSXojX5L+AgYiOL9T5BWrw1ZjbMSFiAd4=,iv:TCzFBrGIUL5UBWU14LKAtrgMBrjZWP0rWs7nACBna+Y=,tag:2qU35uRoatkgQV1uX6SR/A==,type:str]
tailscale-key-vpsfree1: ENC[AES256_GCM,data:YzlFrGDaKwnSPda+GHwLtG2IzthQQExKOnwLOskzFneB4LSsX2SgMVpHVMDl3drxsxjpZt93Ejs=,iv:EnkJ3siOb7vRJvtZG9A0GKoeui3Uugr+vvvqhZlvJp0=,tag:jfNRy0BcoI+bPZ2IB4FFEA==,type:str]
tailscale-key-bolty: ENC[AES256_GCM,data:YlEMC7s66/TFI/G7cgr9TyyFilXUFmwluiubBjjuX6D7Ib6I9w5F84SMOO7Vx8rJJINgkbIvJrg=,iv:QAJL0q7Aw2GeGOAdpsdUkgaMzwRfHBF6j5xodi5bk80=,tag:/c8JxMUqA3JwQwZ5lnOLNg==,type:str]
tailscale-key-vpsfree1: ENC[AES256_GCM,data:ryvIT5ZTdoYZnRZ4gl4XYfuT4f44qNuKTRQ7cL4kRMVq2KkyEUb63tXkr180jgyQllQ6BahR51VN,iv:b+zNGOP1lAQ7BRg6JetKCvo91hzZhqoYgwiQZzqMnKo=,tag:sPPLieczV5sgKMAFgic+0A==,type:str]
tailscale-key-vultr1: ENC[AES256_GCM,data:8YNSlIKi4ssvH0XNLs3e5ee5624wGm1guaYQLWQ0KWMiXW/8jeeCDw==,iv:QsKL4NqOUTCWSIxlaXqXbfzhFcAbJTkYXjkc1eCJv8M=,tag:qhod5l9qupdHGxvbRNuIiw==,type:str]
tailscale-key-thinky: ENC[AES256_GCM,data:xRaCvVaGgLxIn1dhA+SNUIeljTnOiJryrUy/wK09t4gTMQA2h0kj9wg=,iv:b8iw5se4Lucmfi7N0B+RFUAl4tUYGFqtHZ0IxVfCHXE=,tag:dJyVuzbTm/hGalx2H0XjRA==,type:str]
tailscale-key-fixme: ENC[AES256_GCM,data:GfuoFnJBO7RYe0e5vUrHCHgGO+G5rH/WedjG2sEk61tzjUfKoHpt1Mw=,iv:/j2MxHG025lc8z3elehxwvMXN3YEcaKuGmDdWKEsJmI=,tag:h8A9Wt1VAUR8EtAR8Jtr5w==,type:str]
@ -100,8 +100,8 @@ sops:
Vkc0MGZmNFdmYUJvKys5YVZsOWtURm8Ky4sDGX7Inn7+aQxgU92mcUT+te5sya3s
dDqfr1pp2Gbt337kCmvBpwulvYXC/iKtrp3Dh1omWET+39cI1Hfw0w==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2023-03-05T09:53:08Z"
mac: ENC[AES256_GCM,data:2mmdRPGpQAGerPwAtbX9hQ9aBZsTMQeUcw6cvmYlKorN++WvYuc36kbngBQhhF7sqcXN5TGa6kJ6QDUVUTIrOPX0Q2BBTvbZw+9O6qBKAwwKwkI24eVZpWEGw7+46wvBN/s20ieulaD19WtpxR1EiYo/9g1fXGGL1wjsj08lGLg=,iv:hdhcHAEF4PZGFBh4Yii7U17jhEP0OFdhfbbqdmHbm/Y=,tag:GTg0fPw3TrBQQ+xzfaQGFg==,type:str]
lastmodified: "2023-03-05T10:58:12Z"
mac: ENC[AES256_GCM,data:1kQ1dqZUMO3m6OuHHDig3htXwvuUfifOg5RfbclWAjplTKirDK+4Y6BP3sByCa8rD+Pdyu6qiC7iCfhAMWfIjaoHz6UBStWNyxFAKuVFMJP7ELjK7LNPBk0p4GW/VeCiUnWpOJayUavR4khPN+pfb3Vqb2lihWdntUZ6rNGc8Qk=,iv:+JCX5jBeu7LxRh7VnShqmcziReNpt4mL1d5grwij6NE=,tag:eVzW7fcMrhP+0DMnZpxC2g==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3