From f6561ac1edae7e795f1edaa96c73f4b34f0e9b04 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 14 Sep 2020 23:41:28 +0200 Subject: Use attribute sets for boot.initrd.luks.devices This was one of the places where types.loaOf was still in place and it got removed a while[1] ago and this in turn causes evaluation to fail for quite a few machines: The option value `boot.initrd.luks.devices' in `...' is not of type `attribute set of submodules'. I've not only changed all the machines to use attribute sets but also fixed the check in core/tests.nix, because comparing against a list when the actual type is an attribute set will result in all the LUKS tests to be part of *all* channels, no matter whether you're actually using LUKS. [1]: https://github.com/NixOS/nixpkgs/commit/20d491a317d9956ddca80913f07 Signed-off-by: aszlig Cc: @Profpatsch Cc: @sternenseemann --- modules/core/tests.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/core') diff --git a/modules/core/tests.nix b/modules/core/tests.nix index 6ca1e255..0d581aec 100644 --- a/modules/core/tests.nix +++ b/modules/core/tests.nix @@ -383,7 +383,7 @@ let { check = config.boot.loader.grub.version == 1; path = ["nixos" "installer" "grub1"]; } - { check = config.boot.initrd.luks.devices != []; + { check = config.boot.initrd.luks.devices != {}; paths = [ ["nixos" "installer" "luksroot"] ["nixos" "installer" "luksroot-format1"] -- cgit 1.4.1