mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Compare commits
No commits in common. "2703325b4d56f88ac0b474fcac9a6f18eb290497" and "2b5bc47384c0dea3e1f268635a3399121f1cc59d" have entirely different histories.
2703325b4d
...
2b5bc47384
5 changed files with 5 additions and 6 deletions
|
|
@ -37,7 +37,7 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nebula.enable = true;
|
nebula.node.enable = true;
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
dns.enable = true;
|
dns.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nebula.enable = true;
|
nebula.node.enable = true;
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
dns.enable = true;
|
dns.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nebula.enable = true;
|
nebula.node.enable = true;
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
|
|
||||||
crowdsec = {
|
crowdsec = {
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ in
|
||||||
};
|
};
|
||||||
interface = lib.mkOption {
|
interface = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
default = "nebula";
|
default = "nebula.mesh";
|
||||||
};
|
};
|
||||||
systemdUnit = lib.mkOption {
|
systemdUnit = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ in
|
||||||
message = "'${netCfg.hostname}' is a Nebula lighthouse, but underlay.isPublic is not set. Lighthouses must be publicly reachable.";
|
message = "'${netCfg.hostname}' is a Nebula lighthouse, but underlay.isPublic is not set. Lighthouses must be publicly reachable.";
|
||||||
};
|
};
|
||||||
|
|
||||||
meta.ports.udp = lib.optional netCfg.underlay.isPublic publicPort;
|
meta.ports.udp = lib.optional (netCfg.underlay.isPublic) publicPort;
|
||||||
|
|
||||||
sops.secrets."nebula/host-key" = {
|
sops.secrets."nebula/host-key" = {
|
||||||
owner = config.users.users.nebula-mesh.name;
|
owner = config.users.users.nebula-mesh.name;
|
||||||
|
|
@ -44,7 +44,6 @@ in
|
||||||
cert = cfg.certificatePath;
|
cert = cfg.certificatePath;
|
||||||
key = config.sops.secrets."nebula/host-key".path;
|
key = config.sops.secrets."nebula/host-key".path;
|
||||||
|
|
||||||
tun.device = netCfg.overlay.interface;
|
|
||||||
listen.port = lib.mkIf netCfg.underlay.isPublic publicPort;
|
listen.port = lib.mkIf netCfg.underlay.isPublic publicPort;
|
||||||
|
|
||||||
inherit (netCfg) isLighthouse;
|
inherit (netCfg) isLighthouse;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue