Closed LamprosPitsillos closed 1 month ago
Are you overriding the nixpkgs input for this flake?
https://github.com/LamprosPitsillos/nixos-config/blob/main/home-manager/programs/nvim/nvim.nix
Not sure i understand the question.
I'm having the same issue after trying to upgrade to the latest version. This is what I'm using as an overlay:
pkgs =
(import nixpkgs {
inherit system;
config = {
allowUnfree = true;
allowBroken = false;
allowInsecure = false;
allowUnsupportedSystem = false;
permittedInsecurePackages = [];
};
overlays =
[neovim-nightly.overlays.default yazi.overlays.default]
++ lib.lists.optional (builtins.pathExists "${./.}/overlays")
(_: prev: lib.importModuleTreeAsAttrs ./overlays {pkgs = prev;});
})
// {
inherit lib;
};
Notice that I had to use neovim-nightly.overlays.default
as an overlay because simply using neovim-nightly.overlay
as the README indicates fails due to the neovim-nightly
not having the attribute overlay
.
I'm doing all that configuration there to allow me to drop some local overlays on a directory and get my setup to find them and use them, but as of now, the only overlays I'm using are the neovim-nightly
and yazi
.
@LamprosPitsillos This is what I'm talking about; https://github.com/LamprosPitsillos/nixos-config/blob/147db4fbd2f33fea237cdfc726fa1fdad6f14973/flake.nix#L14
If you are overriding the nixpkgs input for this flake, you need to ensure that it is at least https://github.com/NixOS/nixpkgs/commit/d5786c1b5dd2d560724b78f3ce51f1f4ef52d053 or newer
This should be added to the README, along with various other fixes as @Townk points out
Thanks for the response, but in my case I'm not overriding the flake input at all. Any ideas to work around this issue?
Thanks for the response, but in my case I'm not overriding the flake input at all. Any ideas to work around this issue?
You're using overlays, so the same semantic applies. Make sure that your nixpkgs, or whatever your base package set, is at least the nixpkgs version previously specified.
If you have a code link I'm happy to troubleshoot with you.
i had neovim flake locked to a specific commit
I removed that and it now built fine , probably that was the issue , i forgot to unlock it some time ago