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