Skip to content

Commit

Permalink
nix-interop: fix option completion of `types.attrsOf (types.submodule…
Browse files Browse the repository at this point in the history
… {})`

a.k.a. fix a small typo.

Because the type-name `attrsOf` was never matched, e.g.
`systemd.services` always had type `any`.
  • Loading branch information
Ma27 committed Aug 29, 2023
1 parent 97abe7d commit 0dc0acb
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/nix-interop/src/nixos_options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
24 changes: 24 additions & 0 deletions dev/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions dev/flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
description = "foo";
outputs = { self, nixpkgs, ... }: {
nixosModules.default = { lib, ... }: {

};
};
}
10 changes: 10 additions & 0 deletions dev/test.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ lib, ... }: {
config = {

};
imports = [
{

}
];
}

0 comments on commit 0dc0acb

Please sign in to comment.