replace individual bridge option by common one
All checks were successful
nixos config pipeline / show-flake (push) Successful in 1m6s
nixos config pipeline / deploy (push) Successful in 26s

This commit is contained in:
smayzy 2025-09-01 15:56:47 +02:00
parent 6d70290289
commit fe057f88e5
4 changed files with 2 additions and 16 deletions

View File

@ -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";
};
};

View File

@ -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";

View File

@ -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)";

View File

@ -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";