24 lines
470 B
Nix
24 lines
470 B
Nix
{
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkOption types;
|
|
in
|
|
{
|
|
options.smayzy.containers.networking = {
|
|
bridge = mkOption {
|
|
type = types.str;
|
|
description = "the bridge to use e.g. (br0)";
|
|
};
|
|
dns = mkOption {
|
|
type = types.listOf types.str;
|
|
description = "the dns servers to use e.g. [ 1.1.1.1 8.8.8.8 ]";
|
|
};
|
|
gateway = mkOption {
|
|
type = types.str;
|
|
description = "the gateway to use e.g. (10.10.10.255)";
|
|
};
|
|
};
|
|
}
|