From cd34485557244f4a9682aca24abc614d4bb3fd71 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 24 Nov 2026 02:29:03 +0000 Subject: hrm.network.interfaces: init --- modules/network.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/network.nix 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. + ''; + }; + }); + }; +} -- cgit v1.3.1