This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

zerotier -> zerotier-ctrl, remove redundant join/list scripts

+9 -32
+8
2configs/zerotier-ctrl.nix
··· 1 + { 2 + clan.networking.zerotier = { 3 + controller = { 4 + enable = true; 5 + public = false; 6 + }; 7 + }; 8 + }
-31
2configs/zerotier.nix
··· 1 - { pkgs, ... }: 2 - { 3 - clan.networking.zerotier = { 4 - controller = { 5 - enable = true; 6 - public = false; 7 - }; 8 - }; 9 - environment.systemPackages = [ 10 - # pkgs.zerocli 11 - pkgs.jq 12 - (pkgs.writers.writeDashBin "zt-member-ls" '' 13 - set -eu 14 - NETWORK_ID=''${NETWORK_ID:-$(zerotier-cli listnetworks -j | jq -r '.[0] | .id')} 15 - cat /var/lib/zerotier-one/controller.d/network/$NETWORK_ID/member/* | jq -s 16 - '') 17 - (pkgs.writers.writeDashBin "zt-member-auth" '' 18 - set -efux 19 - MEMBER_ID=$1 20 - if ! printf '%s' $MEMBER_ID | grep -q '^[0-9a-f]\{10\}$'; then 21 - echo '$MEMBER_ID is not a valid member id' 22 - exit 1 23 - fi 24 - URL='http://localhost:9993/controller/' 25 - TOKEN=''${TOKEN:-$(cat /var/lib/zerotier-one/authtoken.secret)} 26 - NETWORK_ID=''${NETWORK_ID:-$(zerotier-cli listnetworks -j | jq -r '.[0] | .id')} 27 - 28 - curl -fSs -H "X-ZT1-AUTH: $TOKEN" "$URL/network/$NETWORK_ID/member/$MEMBER_ID" -d '{"authorized": true}' 29 - '') 30 - ]; 31 - }
+1 -1
machines/green/config.nix
··· 19 19 20 20 ../../2configs/atuin-server.nix 21 21 22 - ../../2configs/zerotier.nix 22 + ../../2configs/zerotier-ctrl.nix 23 23 ]; 24 24 25 25 clanCore.secretsUploadDirectory = lib.mkForce "/var/state/secrets";