feat: change neovim flake, add nixcommunity cache
All checks were successful
check-flake / build (push) Successful in 12m14s

This commit is contained in:
2024-11-07 17:16:13 +02:00
parent 0c56f239d1
commit cb48c6da79
2 changed files with 209 additions and 60 deletions

View File

@@ -1,22 +1,32 @@
{
description = "NVIM Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
# nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
neovim = {
url = "github:neovim/neovim/stable?dir=contrib";
inputs.nixpkgs.follows = "nixpkgs";
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
# inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
trusted-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
outputs = inputs @ {
nixpkgs,
flake-utils,
neovim,
neovim-nightly-overlay,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
overlayFlakeInputs = prev: final: {
neovim = neovim.packages.${system}.neovim.overrideAttrs (oa: {
neovim = neovim-nightly-overlay.packages.${system}.default.overrideAttrs (oa: {
nativeBuildInputs = oa.nativeBuildInputs ++ [final.libtermkey];
});
};