mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
nebula: Auto enable as default overlay implementation
This commit is contained in:
parent
27b5c57023
commit
a14692c6d6
7 changed files with 9 additions and 6 deletions
|
|
@ -37,7 +37,6 @@
|
||||||
services = {
|
services = {
|
||||||
auto-gc.enable = true;
|
auto-gc.enable = true;
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
nebula.enable = true;
|
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,6 @@
|
||||||
auto-gc.enable = true;
|
auto-gc.enable = true;
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
nebula.enable = true;
|
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
syncthing = {
|
syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nebula.enable = true;
|
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
dns.enable = true;
|
dns.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,6 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nebula.enable = true;
|
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
dns.enable = true;
|
dns.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nebula.enable = true;
|
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
|
|
||||||
caddy.virtualHosts."dav.${sproutedDomain}" = {
|
caddy.virtualHosts."dav.${sproutedDomain}" = {
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ in
|
||||||
prefixLength = lib.mkOption {
|
prefixLength = lib.mkOption {
|
||||||
type = lib.types.ints.between 0 32;
|
type = lib.types.ints.between 0 32;
|
||||||
default = cfg.networkCidr |> lib.splitString "/" |> lib.last |> lib.toInt;
|
default = cfg.networkCidr |> lib.splitString "/" |> lib.last |> lib.toInt;
|
||||||
|
readOnly = true;
|
||||||
};
|
};
|
||||||
domain = lib.mkOption {
|
domain = lib.mkOption {
|
||||||
type = lib.types.nonEmptyStr;
|
type = lib.types.nonEmptyStr;
|
||||||
|
|
@ -61,5 +62,10 @@ in
|
||||||
|> lib.filter (host: host.config.custom.services.dns.enable)
|
|> lib.filter (host: host.config.custom.services.dns.enable)
|
||||||
|> lib.map (host: host.config.custom.networking.overlay.address);
|
|> lib.map (host: host.config.custom.networking.overlay.address);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
implementation = lib.mkOption {
|
||||||
|
type = lib.types.enum [ "nebula" ];
|
||||||
|
default = "nebula";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,9 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.custom.services.nebula = {
|
options.custom.services.nebula = {
|
||||||
enable = lib.mkEnableOption "";
|
enable = lib.mkEnableOption "" // {
|
||||||
|
default = netCfg.overlay.implementation == "nebula";
|
||||||
|
};
|
||||||
|
|
||||||
publicKeyPath = lib.mkOption {
|
publicKeyPath = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue