Skip to content

[Feature Request] Disable NixOS Options #807

@allen-liaoo

Description

@allen-liaoo

Is your feature request related to a problem? Please describe.

Would love to be able to disable NixOS options. I use Home-manager standalone and nixd suggesting the options is confusing to me. For example, when I type program, I get two possible modules, and I have to look at them to know which one is home-manager's programs module. I tried setting nixos.expr to vim.NIL but get this error instead.

[ERROR][2026-04-11 17:24:18] ...-unwrapped-0.12.1/share/nvim/runtime/lua/vim/lsp/log.lua:151	"rpc"	"nixd"	"stderr"	"I[17:24:18.651] 229687: <-- reply(4)\nE[17:24:18.651] 229687: workspace/configuration: parse error expected object at (root).options.nixos\nE[17:24:18.651] 229687: workspace/configuration: parse error expected object at (root).options.nixos\n"

Describe the solution you'd like

To stop nixd from loading nixos options or at least from suggesting them.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions