This repository has no description
0

Configure Feed

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

add zerotier.nix to all machines

+20
+1
2configs/default.nix
··· 11 11 ./tor-ssh.nix 12 12 ./networkd.nix 13 13 ./pinned-registry.nix 14 + ./zerotier.nix 14 15 self.inputs.stockholm.nixosModules.users 15 16 self.inputs.stockholm.nixosModules.hosts 16 17 self.inputs.stockholm.nixosModules.kartei
+19
2configs/zerotier.nix
··· 1 + { lib, ... }: 2 + let 3 + hosts = lib.mapAttrs (machine: _: { 4 + ip = if builtins.pathExists ../machines/${machine}/facts/zerotier-ip then 5 + builtins.readFile ../machines/${machine}/facts/zerotier-ip 6 + else 7 + null; 8 + }) (builtins.readDir ../machines); 9 + 10 + filteredHosts = lib.filterAttrs (name: host: host.ip != null) hosts; 11 + 12 + in 13 + { 14 + clan.networking.zerotier.networkId = "7c31a21e86f9a75c"; 15 + 16 + networking.extraHosts = lib.concatMapStringsSep "\n" (host: 17 + "${host.value.ip} ${host.name}.z" 18 + ) (lib.attrsToList filteredHosts); 19 + }