alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
RIP zerotier
author
lassulus
date
4 months ago
(Jun 12, 2026, 2:44 PM CEST)
commit
7a448003
7a448003b07fb68123637be3a7ad4f6880169c41
parent
ac5fa122
ac5fa1225b8e5f1b9e1309b68d3761013c97bd06
-35
2 changed files
Expand all
Collapse all
Unified
Split
2configs
default.nix
zerotier.nix
-1
2configs/default.nix
View file
Reviewed
···
32
32
./tor-ssh.nix
33
33
./networkd.nix
34
34
./pinned-registry.nix
35
35
-
./zerotier.nix
36
35
./nix.nix
37
36
38
37
# Import stockholm modules
-34
2configs/zerotier.nix
Reviewed
···
1
1
-
{ config, lib, ... }:
2
2
-
let
3
3
-
hosts = lib.mapAttrs (machine: _: {
4
4
-
ip =
5
5
-
let
6
6
-
zerotier_ip_path =
7
7
-
config.clan.core.settings.directory + "/vars/per-machine/${machine}/zerotier/zerotier-ip/value";
8
8
-
in
9
9
-
if builtins.pathExists zerotier_ip_path then builtins.readFile zerotier_ip_path else null;
10
10
-
}) (builtins.readDir ../machines);
11
11
-
12
12
-
filteredHosts = lib.filterAttrs (_name: host: host.ip != null) hosts;
13
13
-
in
14
14
-
{
15
15
-
services.zerotierone.joinNetworks = [ "7c31a21e86f9a75c" ];
16
16
-
services.zerotierone.localConf.settings = {
17
17
-
interfacePrefixBlacklist = [
18
18
-
"ygg"
19
19
-
"mesh"
20
20
-
"retiolum"
21
21
-
"wiregrill"
22
22
-
];
23
23
-
physical = {
24
24
-
"10.243.0.0/16".blacklist = true;
25
25
-
"10.244.0.0/16".blacklist = true;
26
26
-
"42::/16".blacklist = true;
27
27
-
"5d9::/7".blacklist = true;
28
28
-
};
29
29
-
};
30
30
-
31
31
-
networking.extraHosts = lib.concatMapStringsSep "\n" (host: "${host.value.ip} ${host.name}.z") (
32
32
-
lib.attrsToList filteredHosts
33
33
-
);
34
34
-
}