From e99c89177ae93bc0358da4c2642278882da4614a Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 29 Aug 2023 17:44:25 +0200 Subject: [PATCH] nix-interop: fix option completion of `types.attrsOf (types.submodule {})` a.k.a. fix a small typo. Because the type-name `attrsOf` was never matched, e.g. `systemd.services` always had type `any`. --- crates/nix-interop/src/nixos_options.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nix-interop/src/nixos_options.nix b/crates/nix-interop/src/nixos_options.nix index b674859..3bbd840 100644 --- a/crates/nix-interop/src/nixos_options.nix +++ b/crates/nix-interop/src/nixos_options.nix @@ -104,8 +104,8 @@ let listOf = { name = "list"; inherit elem; }; - attrOf = { name = "attrset"; rest = elem; }; - lazyAttrOf = { name = "attrset"; rest = elem; }; + attrsOf = { name = "attrset"; rest = elem; }; + lazyAttrsOf = { name = "attrset"; rest = elem; }; uniq = elem; unique = elem;