Skip to content

Is it possible to use nix module system within nixvim standalone? #2034

Closed Answered by MattSturgeon
HeitorAugustoLN asked this question in Q&A
Discussion options

You must be logged in to vote

No, you could do:

{inputs, pkgs, ...}: {
  home.packages = [
    (inputs.nixvim-config.packages.${pkgs.stdenv.hostPlatform.system}.default.extend {
      option = true;
    })
  ];
}

Or:

{inputs, pkgs, ...}:
let
  inherit (pkgs.stdenv.hostPlatform) system;
  myNvim = inputs.nixvim-config.packages.${system}.default.extend {
    option = true;
  };
in
{
  home.packages = [ myNvim ];
}

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@HeitorAugustoLN
Comment options

@MattSturgeon
Comment options

Answer selected by HeitorAugustoLN
@MattSturgeon
Comment options

@HeitorAugustoLN
Comment options

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