mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 13:28:27 +01:00
Compare commits
No commits in common. "feaf9410821a041f4ee9261c7acaf0e951c5d40c" and "27b5c57023f99cacd4f1d19dfce2f4c866b5f8cf" have entirely different histories.
feaf941082
...
27b5c57023
8 changed files with 14 additions and 13 deletions
|
|
@ -37,6 +37,7 @@
|
||||||
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;
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,14 @@ _: {
|
||||||
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
# Prevent immediate wake-up from suspend caused by the logi bolt receiver
|
services = {
|
||||||
services.udev.extraRules = ''
|
fstrim.enable = true;
|
||||||
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
|
||||||
|
udev.extraRules = ''
|
||||||
|
ACTION=="add" SUBSYSTEM=="pci" ATTR{vendor}=="0x1022" ATTR{device}=="0x43ee" ATTR{power/wakeup}="disabled"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
hardware.fancontrol = {
|
hardware.fancontrol = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@
|
||||||
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,6 +35,7 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nebula.enable = true;
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
dns.enable = true;
|
dns.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nebula.enable = true;
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
dns.enable = true;
|
dns.enable = true;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@
|
||||||
onlyCleanRoots = true;
|
onlyCleanRoots = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nebula.enable = true;
|
||||||
sshd.enable = true;
|
sshd.enable = true;
|
||||||
|
|
||||||
caddy.virtualHosts."dav.${sproutedDomain}" = {
|
caddy.virtualHosts."dav.${sproutedDomain}" = {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ 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;
|
||||||
|
|
@ -62,10 +61,5 @@ 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,9 +12,7 @@ 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