Closed lanjoni closed 8 months ago
Is your nixpkgs
revision recent enough? Meaning have you run nix flake update
recently?
Thanks! This changed my situation: I was using an old revision of nixpkgs
and now my nixvim
is installed with home-manager module. But, when I tried to run this flake I got this error:
# modules/home-manager/default.nix
{ pkgs, ... }: {
# specify my home-manager configs
imports = [
./settings/zsh.nix
./settings/kitty.nix
./settings/tmux.nix
./settings/neovim.nix
];
# ... with the rest of code
# modules/home-manager/settings/neovim.nix
{ pkgs, ... }: {
programs.nixvim = {
enable = true;
colorschemes.kanagawa.enable = true;
};
}
That is (I think) a real nixvim issue
That is (I think) a real nixvim issue
Ok! I changed the issue title now. Thanks for your help in advance! If I have any updates I will send here (if you have any updates, please send here).
Ok so the issue is that https://github.com/NixOS/nixpkgs/pull/285828 was merged recently, is present in nixpkgs-unstable, but not yet in nixos-unstable (which we target).
So to fix your issue you could use nixos-unstable
as a nixpkgs reference.
Ok so the issue is that NixOS/nixpkgs#285828 was merged recently, is present in nixpkgs-unstable, but not yet in nixos-unstable (which we target).
So to fix your issue you could use
nixos-unstable
as a nixpkgs reference.
Great, but, how can I do this? And, I need to add this reference only for nixvim
?
Ok so the issue is that NixOS/nixpkgs#285828 was merged recently, is present in nixpkgs-unstable, but not yet in nixos-unstable (which we target).
So to fix your issue you could use
nixos-unstable
as a nixpkgs reference.
Nope, it's in nixos-unstable as well: https://github.com/NixOS/nixpkgs/commit/3a19a727c8df98da4e0494bf2a1db50412df6a01
It has just landed I think (https://nixpk.gs/pr-tracker.html?pr=285828).
So, I believe the temporary solution would be to set
nixpkgs.url = "github:NixOS/nixpkgs/d8e0944e6d2ce0f326040e654c07a410e2617d47";
(which is right before that PR landed) until the issue's resolved or something?
Edit: well, at least it builds. Although it was probably better to just make nixvim follow that particular revision.
Now I got a new error:
error: attribute 'php-codesniffer' missing
at /nix/store/7nqyi3z1i7d5rpf1nb0v1ymmdhhamav3-source/plugins/none-ls/servers.nix:196:19:
195| phpcbf = {
196| package = pkgs.phpPackages.php-codesniffer;
| ^
197| };
Ah sorry my bad, ignore me.
Sorry for the troubles guys, this thing was a long overdue... and it has to be done one day or another. Glad it has been fixed!
Now I got a new error:
error: attribute 'php-codesniffer' missing at /nix/store/7nqyi3z1i7d5rpf1nb0v1ymmdhhamav3-source/plugins/none-ls/servers.nix:196:19: 195| phpcbf = { 196| package = pkgs.phpPackages.php-codesniffer; | ^ 197| };
Ah sorry my bad, ignore me.
how did you fix this?
nix flake update
I'd wager
all
unstable
unstable
Description
I'm trying to install NixVim in my Nix darwin and NixOS env, but I can't. The error is about one of the plugins, and I haven't installed or configured any configuration file (for plugin or something else) for NixVim.
Minimal, Reproducible Example (MRE)
That's my
flake.nix
!