mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 23:29:08 +01:00
networking/overlay: Move defaults from nebula
This commit is contained in:
parent
68be114017
commit
d92342ab4c
2 changed files with 4 additions and 11 deletions
|
|
@ -11,7 +11,7 @@ in
|
||||||
options.custom.networking.overlay = {
|
options.custom.networking.overlay = {
|
||||||
networkCidr = lib.mkOption {
|
networkCidr = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
default = "";
|
default = "10.254.250.0/24";
|
||||||
};
|
};
|
||||||
networkAddress = lib.mkOption {
|
networkAddress = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
|
|
@ -25,7 +25,7 @@ in
|
||||||
};
|
};
|
||||||
domain = lib.mkOption {
|
domain = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
default = "";
|
default = "splitleaf.de";
|
||||||
};
|
};
|
||||||
fqdn = lib.mkOption {
|
fqdn = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
|
|
@ -43,11 +43,11 @@ in
|
||||||
};
|
};
|
||||||
interface = lib.mkOption {
|
interface = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
default = "";
|
default = "nebula";
|
||||||
};
|
};
|
||||||
systemdUnit = lib.mkOption {
|
systemdUnit = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
default = "";
|
default = "nebula@mesh.service";
|
||||||
};
|
};
|
||||||
|
|
||||||
isLighthouse = lib.mkEnableOption "";
|
isLighthouse = lib.mkEnableOption "";
|
||||||
|
|
|
||||||
|
|
@ -51,13 +51,6 @@ 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.";
|
||||||
};
|
};
|
||||||
|
|
||||||
custom.networking.overlay = {
|
|
||||||
networkCidr = "10.254.250.0/24";
|
|
||||||
domain = "splitleaf.de";
|
|
||||||
interface = "nebula";
|
|
||||||
systemdUnit = "nebula@mesh.service";
|
|
||||||
};
|
|
||||||
|
|
||||||
sops.secrets."nebula/host-key" = lib.mkIf (cfg.privateKeyPath == null) {
|
sops.secrets."nebula/host-key" = lib.mkIf (cfg.privateKeyPath == null) {
|
||||||
owner = config.users.users.nebula-mesh.name;
|
owner = config.users.users.nebula-mesh.name;
|
||||||
restartUnits = [ "nebula@mesh.service" ];
|
restartUnits = [ "nebula@mesh.service" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue