about summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2019-09-25 17:13:29 +0200
committerLinus Heckemann <git@sphalerite.org>2019-09-30 12:07:13 +0200
commitb08b0bcbbec77046e5a7082177cedc12fbf1dc6c (patch)
treeb80838572ca28282dc278db44abd462c2d49cb63 /nixos/modules/tasks
parentd4212d66a8c793413bdb317a3af5f70f10c1f60c (diff)
downloadnixlib-b08b0bcbbec77046e5a7082177cedc12fbf1dc6c.tar
nixlib-b08b0bcbbec77046e5a7082177cedc12fbf1dc6c.tar.gz
nixlib-b08b0bcbbec77046e5a7082177cedc12fbf1dc6c.tar.bz2
nixlib-b08b0bcbbec77046e5a7082177cedc12fbf1dc6c.tar.lz
nixlib-b08b0bcbbec77046e5a7082177cedc12fbf1dc6c.tar.xz
nixlib-b08b0bcbbec77046e5a7082177cedc12fbf1dc6c.tar.zst
nixlib-b08b0bcbbec77046e5a7082177cedc12fbf1dc6c.zip
mkRemovedOptionModule: assert on removed options
We don't want to ignore config that can mess up machines. In general
this should always fail evaluation, as you think you are changing
behaviour and don't, which can easily create run-time errors we can
catch early.
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/network-interfaces.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix
index 5bf7b0d227f0..ee3ae2e91f20 100644
--- a/nixos/modules/tasks/network-interfaces.nix
+++ b/nixos/modules/tasks/network-interfaces.nix
@@ -305,7 +305,7 @@ let
             optional (defined ipv6Address && defined ipv6PrefixLength)
             { address = ipv6Address; prefixLength = ipv6PrefixLength; }))
 
-        ({ options.warnings = options.warnings; })
+        ({ options.warnings = options.warnings; options.assertions = options.assertions; })
       ];
 
   };