base/network-{dhcp,static}: re-add hardwareAddress param

This commit is contained in:
2025-09-10 20:35:47 -07:00
parent e5886e6838
commit c16278e6f7
2 changed files with 14 additions and 0 deletions

View File

@@ -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 {

View File

@@ -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 = [ ];