summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authorVincent Haupert <mail@vincent-haupert.de>2021-05-17 18:30:37 +0200
committerVincent Haupert <mail@vincent-haupert.de>2021-05-17 18:30:37 +0200
commitfaeb9e3233e102ae86acb2c85a7c3f7f94d473a3 (patch)
tree222a67164ee6a9306ad1f07babc5fbf6ea540da3 /nixos/modules/system/boot/networkd.nix
parentcb8463cc69506e38fc0c43069835b353a5d52602 (diff)
downloadnixpkgs-faeb9e3233e102ae86acb2c85a7c3f7f94d473a3.tar
nixpkgs-faeb9e3233e102ae86acb2c85a7c3f7f94d473a3.tar.gz
nixpkgs-faeb9e3233e102ae86acb2c85a7c3f7f94d473a3.tar.bz2
nixpkgs-faeb9e3233e102ae86acb2c85a7c3f7f94d473a3.tar.lz
nixpkgs-faeb9e3233e102ae86acb2c85a7c3f7f94d473a3.tar.xz
nixpkgs-faeb9e3233e102ae86acb2c85a7c3f7f94d473a3.tar.zst
nixpkgs-faeb9e3233e102ae86acb2c85a7c3f7f94d473a3.zip
nixos/networkd: add missing [DHCPServer] options
`systemd.network.networks.*.dhcpServerConfig` did not accept all of
the options which are valid for networkd's [DHCPServer] section. See
systemd.network(5) of systemd 247 for details.
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r--nixos/modules/system/boot/networkd.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index bbdd5a40706..1de58b3d2c4 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -716,10 +716,17 @@ let
           "NTP"
           "EmitSIP"
           "SIP"
+          "EmitPOP3"
+          "POP3"
+          "EmitSMTP"
+          "SMTP"
+          "EmitLPR"
+          "LPR"
           "EmitRouter"
           "EmitTimezone"
           "Timezone"
           "SendOption"
+          "SendVendorOption"
         ])
         (assertInt "PoolOffset")
         (assertMinimum "PoolOffset" 0)
@@ -728,6 +735,9 @@ let
         (assertValueOneOf "EmitDNS" boolValues)
         (assertValueOneOf "EmitNTP" boolValues)
         (assertValueOneOf "EmitSIP" boolValues)
+        (assertValueOneOf "EmitPOP3" boolValues)
+        (assertValueOneOf "EmitSMTP" boolValues)
+        (assertValueOneOf "EmitLPR" boolValues)
         (assertValueOneOf "EmitRouter" boolValues)
         (assertValueOneOf "EmitTimezone" boolValues)
       ];