summaryrefslogtreecommitdiffstats
path: root/modules/network.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/network.nix')
-rw-r--r--modules/network.nix18
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.
+ '';
+ };
+ });
+ };
+}