nixos-config/common/networking/zerotier.nix
2024-04-24 23:44:30 -04:00

26 lines
472 B
Nix

{
config,
lib,
pkgs,
inputs,
outputs,
...
}: {
options = {
zerotier.enable = lib.mkEnableOption "Enables zerotier and joins my network";
};
config = lib.mkIf config.zerotier.enable {
services.zerotierone = {
joinNetworks = [
"ebe7fbd445359e9d"
];
enable = true;
};
networking.extraHosts = ''
192.168.194.241 nothing.zt
192.168.191.213 candlekeep.zt
192.168.191.168 grymforge.zt
'';
};
}