Compare commits

...

2 commits

8 changed files with 13 additions and 14 deletions

View file

@ -37,7 +37,6 @@
services = {
auto-gc.enable = true;
sound.enable = true;
nebula.enable = true;
sshd.enable = true;
syncthing = {
enable = true;

View file

@ -24,14 +24,10 @@ _: {
zramSwap.enable = true;
services = {
fstrim.enable = true;
# Prevent immediate wake-up from suspend caused by the logi bolt receiver
udev.extraRules = ''
ACTION=="add" SUBSYSTEM=="pci" ATTR{vendor}=="0x1022" ATTR{device}=="0x43ee" ATTR{power/wakeup}="disabled"
'';
};
# Prevent immediate wake-up from suspend caused by the logi bolt receiver
services.udev.extraRules = ''
ACTION=="add" SUBSYSTEM=="pci" ATTR{vendor}=="0x1022" ATTR{device}=="0x43ee" ATTR{power/wakeup}="disabled"
'';
hardware.fancontrol = {
enable = true;

View file

@ -39,7 +39,6 @@
auto-gc.enable = true;
bluetooth.enable = true;
sound.enable = true;
nebula.enable = true;
sshd.enable = true;
syncthing = {
enable = true;

View file

@ -35,7 +35,6 @@
onlyCleanRoots = true;
};
nebula.enable = true;
sshd.enable = true;
dns.enable = true;
};

View file

@ -39,7 +39,6 @@
onlyCleanRoots = true;
};
nebula.enable = true;
sshd.enable = true;
dns.enable = true;

View file

@ -38,7 +38,6 @@
onlyCleanRoots = true;
};
nebula.enable = true;
sshd.enable = true;
caddy.virtualHosts."dav.${sproutedDomain}" = {

View file

@ -21,6 +21,7 @@ in
prefixLength = lib.mkOption {
type = lib.types.ints.between 0 32;
default = cfg.networkCidr |> lib.splitString "/" |> lib.last |> lib.toInt;
readOnly = true;
};
domain = lib.mkOption {
type = lib.types.nonEmptyStr;
@ -61,5 +62,10 @@ in
|> lib.filter (host: host.config.custom.services.dns.enable)
|> lib.map (host: host.config.custom.networking.overlay.address);
};
implementation = lib.mkOption {
type = lib.types.enum [ "nebula" ];
default = "nebula";
};
};
}

View file

@ -12,7 +12,9 @@ let
in
{
options.custom.services.nebula = {
enable = lib.mkEnableOption "";
enable = lib.mkEnableOption "" // {
default = netCfg.overlay.implementation == "nebula";
};
publicKeyPath = lib.mkOption {
type = lib.types.path;