summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd-unit-options.nix
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-11-20 02:37:48 -0800
committerWilliam A. Kennington III <william@wkennington.com>2014-11-26 11:22:02 -0800
commit59f512ef7d2137586330f2cabffc41a70f4f0346 (patch)
tree9b22c0e17aa84e71f774d6edcba55d0b7c412e81 /nixos/modules/system/boot/systemd-unit-options.nix
parent045132a9b096a22cb6f84210fcd5223b9a770d62 (diff)
downloadnixpkgs-59f512ef7d2137586330f2cabffc41a70f4f0346.tar
nixpkgs-59f512ef7d2137586330f2cabffc41a70f4f0346.tar.gz
nixpkgs-59f512ef7d2137586330f2cabffc41a70f4f0346.tar.bz2
nixpkgs-59f512ef7d2137586330f2cabffc41a70f4f0346.tar.lz
nixpkgs-59f512ef7d2137586330f2cabffc41a70f4f0346.tar.xz
nixpkgs-59f512ef7d2137586330f2cabffc41a70f4f0346.tar.zst
nixpkgs-59f512ef7d2137586330f2cabffc41a70f4f0346.zip
nixos/network-interfaces: Provide a networkd implementation
Diffstat (limited to 'nixos/modules/system/boot/systemd-unit-options.nix')
-rw-r--r--nixos/modules/system/boot/systemd-unit-options.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix
index 52ad71a66c7..20851c626d7 100644
--- a/nixos/modules/system/boot/systemd-unit-options.nix
+++ b/nixos/modules/system/boot/systemd-unit-options.nix
@@ -832,6 +832,30 @@ in rec {
       '';
     };
 
+    name = mkOption {
+      type = types.nullOr types.str;
+      default = null;
+      description = ''
+        The name of the network interface to match against.
+      '';
+    };
+
+    DHCP = mkOption {
+      type = types.nullOr types.str;
+      default = null;
+      description = ''
+        Whether to enable DHCP on the interfaces matched.
+      '';
+    };
+
+    domains = mkOption {
+      type = types.nullOr (types.listOf types.str);
+      default = null;
+      description = ''
+        A list of domains to pass to the network config.
+      '';
+    };
+
     address = mkOption {
       default = [ ];
       type = types.listOf types.str;