Skip to content

What I'm doing wrong by adding it to my config.nix? #1370

Closed Answered by Bodleum
Guelakais asked this question in Q&A
Discussion options

You must be logged in to vote

You need to actually import the module. Currently you have:

imports = [
    /etc/nixos/hardware-configuration.nix
    nixvim
  ];

It should read:

imports = [
    /etc/nixos/hardware-configuration.nix
    nixvim.nixosModules.nixvim
  ];

P.S.
You can also collapse the let ... in blocks into one.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by GaetanLepage
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants