Closed pinarruiz closed 7 months ago
The issue here is that even though you have set inputs.nixpkgs.follows = "nixpkgs-unstable"
for the nixvim
input, this has no impact.
Indeed, the pkgs
attrs used by nixvim
will be inherited from home-manager and will thus be following the 23.11 channel.
If you want to have such a setup where your NixOS and HM systems follow a stable branch while having nixvim unstable is to configure the latter in a standalone flake.
Here is an example: https://github.com/redyf/Neve
Thanks @GaetanLepage this worked like a charm.
Doesn't work for me. I have both HM and Nixvim following nixpkgs-unstable, but still facing the same issue.
Here is my flake.nix:
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
Am i missing something?
Doesn't work for me. I have both HM and Nixvim following nixpkgs-unstable, but still facing the same issue.
If you are using HM as a NixOS module, then the same kind of logic may apply.
HM has an option called useGlobalPkgs
which decides which pkgs instance is used.
Maybe try to look in this direction.
Anyway, if you want to have stable NixOS but unstable nixvim, you might want to consider using a standalone flake.
23.11
andunstable
23.11
Description
I have setup my NixOs config on a flake. Following this guide which allows me to specify
pkgs.unstable
whenever i need an unstable package. Using the main branch of nixvim and setting theinputs.nixpkgs.follows = "nixpkgs-unstable";
does not seem to work, the error i get isof course is deeper than that, because in unstable this package exists, so is as if nixvim is taking
23.11
even if i specify unstable.I do not know if this is to be expected and what i am suggesting here is impossible, but would be nice to have a way of specyfing the package source.
Minimal, Reproducible Example (MRE)
Flake inputs:
Thanks for the good work of nixvim, what a great project :smile:.