From b4cd0b81ecab060f5c27f5d294c4be2a60439c50 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Fri, 21 Aug 2020 23:06:48 +0200 Subject: [PATCH 1/2] release-notes: Mention freeform modules As introduced by https://github.com/NixOS/nixpkgs/pull/82743 --- nixos/doc/manual/release-notes/rl-2009.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2009.xml b/nixos/doc/manual/release-notes/rl-2009.xml index 4695175638d09..908fc3b1a1da4 100644 --- a/nixos/doc/manual/release-notes/rl-2009.xml +++ b/nixos/doc/manual/release-notes/rl-2009.xml @@ -190,6 +190,11 @@ GRANT ALL PRIVILEGES ON *.* TO 'mysql'@'localhost' WITH GRANT OPTION; + + + The NixOS module system now supports freeform modules as a mix between types.attrsOf and types.submodule. These allow you to explicitly declare a subset of options while still permitting definitions without an associated option. See for how to use them. + + From 80567e9a58ce8eb0d9554dd0b17d74d2162d3f47 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Fri, 21 Aug 2020 23:07:27 +0200 Subject: [PATCH 2/2] release-notes: Mention stricter option evaluation As caused by https://github.com/NixOS/nixpkgs/pull/82743 --- nixos/doc/manual/release-notes/rl-2009.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2009.xml b/nixos/doc/manual/release-notes/rl-2009.xml index 908fc3b1a1da4..d65217610e79f 100644 --- a/nixos/doc/manual/release-notes/rl-2009.xml +++ b/nixos/doc/manual/release-notes/rl-2009.xml @@ -736,6 +736,13 @@ CREATE ROLE postgres LOGIN SUPERUSER; The USBGuard module now removes options and instead hardcodes values for IPCAccessControlFiles, ruleFiles, and auditFilePath. Audit logs can be found in the journal. + + + The NixOS module system now evaluates option definitions more strictly, allowing it to detect a larger set of problems. + As a result, what previously evaluated may not do so anymore. + See the PR that changed this for more info. + +