replace individual bridge option by common one
This commit is contained in:
parent
6d70290289
commit
fe057f88e5
@ -24,12 +24,10 @@
|
|||||||
nixos = {
|
nixos = {
|
||||||
httpd = {
|
httpd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bridge = "br0";
|
|
||||||
ip = "192.168.1.201/24";
|
ip = "192.168.1.201/24";
|
||||||
};
|
};
|
||||||
unbound = {
|
unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bridge = "br0";
|
|
||||||
ip = "192.168.1.202/24";
|
ip = "192.168.1.202/24";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -11,10 +11,6 @@ in
|
|||||||
default = false;
|
default = false;
|
||||||
description = "httpd nixos ct";
|
description = "httpd nixos ct";
|
||||||
};
|
};
|
||||||
bridge = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
description = "the bridge to use e.g. (br0)";
|
|
||||||
};
|
|
||||||
ip = mkOption {
|
ip = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "ip addr e.g. (192.168.1.20)";
|
description = "ip addr e.g. (192.168.1.20)";
|
||||||
@ -25,7 +21,7 @@ in
|
|||||||
containers.httpd = {
|
containers.httpd = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
hostBridge = cfg.bridge;
|
hostBridge = net.bridge;
|
||||||
localAddress = cfg.ip;
|
localAddress = cfg.ip;
|
||||||
config = { ... }: {
|
config = { ... }: {
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
|||||||
@ -11,10 +11,6 @@ in
|
|||||||
default = false;
|
default = false;
|
||||||
description = "traefik nixos ct";
|
description = "traefik nixos ct";
|
||||||
};
|
};
|
||||||
bridge = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
description = "the bridge to use e.g. (br0)";
|
|
||||||
};
|
|
||||||
ip = mkOption {
|
ip = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "ip addr e.g. (192.168.1.20)";
|
description = "ip addr e.g. (192.168.1.20)";
|
||||||
|
|||||||
@ -11,10 +11,6 @@ in
|
|||||||
default = false;
|
default = false;
|
||||||
description = "unbound nixos ct";
|
description = "unbound nixos ct";
|
||||||
};
|
};
|
||||||
bridge = mkOption {
|
|
||||||
type = types.str;
|
|
||||||
description = "the bridge to use e.g. (br0)";
|
|
||||||
};
|
|
||||||
ip = mkOption {
|
ip = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "ip addr e.g. (192.168.1.20)";
|
description = "ip addr e.g. (192.168.1.20)";
|
||||||
@ -25,7 +21,7 @@ in
|
|||||||
containers.unbound = {
|
containers.unbound = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
privateNetwork = true;
|
privateNetwork = true;
|
||||||
hostBridge = cfg.bridge;
|
hostBridge = net.bridge;
|
||||||
localAddress = cfg.ip;
|
localAddress = cfg.ip;
|
||||||
config = { ... }: {
|
config = { ... }: {
|
||||||
system.stateVersion = "25.11";
|
system.stateVersion = "25.11";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user