fix(unbound): revert to old IP
This commit is contained in:
@@ -3,21 +3,17 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
unit = "unbound";
|
unit = "unbound";
|
||||||
cfg = config.server.${unit};
|
cfg = config.server.${unit};
|
||||||
|
|
||||||
hostIp =
|
hostIp = hostname:
|
||||||
hostname:
|
if hostname == "ziggy"
|
||||||
if hostname == "ziggy" then
|
then "192.168.88.12"
|
||||||
"192.168.88.12"
|
else if hostname == "sobotka"
|
||||||
else if hostname == "sobotka" then
|
then "192.168.88.14"
|
||||||
"192.168.88.15"
|
else throw "No IP defined for host ${hostname}";
|
||||||
else
|
in {
|
||||||
throw "No IP defined for host ${hostname}";
|
|
||||||
in
|
|
||||||
{
|
|
||||||
options.server.${unit} = {
|
options.server.${unit} = {
|
||||||
enable = lib.mkEnableOption {
|
enable = lib.mkEnableOption {
|
||||||
description = "Enable ${unit}";
|
description = "Enable ${unit}";
|
||||||
|
|||||||
Reference in New Issue
Block a user