diff options
| author | tv <tv@krebsco.de> | 2026-11-24 02:29:03 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-24 03:12:57 +0000 |
| commit | cd34485557244f4a9682aca24abc614d4bb3fd71 (patch) | |
| tree | afa08eeac6b4164bba70695dde47267c152fb0ef /modules | |
| parent | 9e351e61ef1ff002a0546478a3c2b509d3f36918 (diff) | |
hrm.network.interfaces: init
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/network.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/network.nix b/modules/network.nix new file mode 100644 index 00000000..136c9133 --- /dev/null +++ b/modules/network.nix @@ -0,0 +1,18 @@ +{ lib, ... }: { + options.hrm.network.interfaces = lib.mkOption { + default = {}; + description = '' + What hrm knows about network interfaces, by the names + networking.interfaces uses. + ''; + type = lib.types.attrsOf (lib.types.submodule { + options.medium = lib.mkOption { + type = lib.types.nullOr (lib.types.enum [ "ethernet" "wlan" "wwan" ]); + default = null; + description = '' + What the interface connects through. + ''; + }; + }); + }; +} |
