use nixos-24.05 branch to get rid of "error: attribute 'cmp-ai' missing"

This commit is contained in:
megit 2024-08-07 16:39:09 +08:00
parent 400a94b54e
commit 47aa7eb7c5

View file

@ -3,8 +3,11 @@
description = "my_nixvim flake, Neve mod (only flake.nix)"; description = "my_nixvim flake, Neve mod (only flake.nix)";
inputs = { inputs = {
nixvim.url = "github:nix-community/nixvim"; # https://github.com/nix-community/nixvim/issues/1859
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05"; # use nixos-24.05 branch to get rid of "error: attribute 'cmp-ai' missing"
nixvim.url = "github:nix-community/nixvim/nixos-24.05";
# nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
# nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
# https://github.com/nvim-neorg/nixpkgs-neorg-overlay # https://github.com/nvim-neorg/nixpkgs-neorg-overlay
@ -15,7 +18,7 @@
outputs = { outputs = {
self self
, nixpkgs , nixpkgs
, nixpkgs-stable # , nixpkgs-stable
, nixvim , nixvim
, flake-utils , flake-utils
, neorg-overlay , neorg-overlay
@ -29,10 +32,10 @@
inherit system; inherit system;
nixpkgs.overlays = [ neorg-overlay.overlays.default ]; nixpkgs.overlays = [ neorg-overlay.overlays.default ];
}; };
pkgs-stable = import nixpkgs-stable { # pkgs-stable = import nixpkgs-stable {
inherit system; # inherit system;
nixpkgs.overlays = [ neorg-overlay.overlays.default ]; # nixpkgs.overlays = [ neorg-overlay.overlays.default ];
}; # };
nixvim' = nixvim.legacyPackages.${system}; nixvim' = nixvim.legacyPackages.${system};
nvim = nixvim'.makeNixvimWithModule { nvim = nixvim'.makeNixvimWithModule {
inherit pkgs; inherit pkgs;
@ -40,7 +43,8 @@
# You can use `extraSpecialArgs` to pass additional arguments to your module files # You can use `extraSpecialArgs` to pass additional arguments to your module files
extraSpecialArgs = { extraSpecialArgs = {
inherit self; inherit self;
inherit pkgs-stable; # inherit pkgs-stable;
inherit pkgs;
}; };
}; };
in { in {