base/network-{dhcp,static}: re-add hardwareAddress param
This commit is contained in:
@@ -17,6 +17,13 @@ in
|
||||
{
|
||||
options.network-dhcp = {
|
||||
enable = mkEnableOption "Enables DHCP networking on host";
|
||||
|
||||
hardwareAddress = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = "MAC address of primary ethernet interface";
|
||||
example = "11:22:33:44:55:66";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
@@ -27,6 +27,13 @@ in
|
||||
options.network-static = {
|
||||
enable = mkEnableOption "Enables networking config for Hetzner";
|
||||
|
||||
hardwareAddress = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
description = "MAC address of primary ethernet interface";
|
||||
example = "11:22:33:44:55:66";
|
||||
};
|
||||
|
||||
staticAddresses = mkOption {
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
|
||||
Reference in New Issue
Block a user