Files
nvim/flake.nix

54 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2023-04-02 13:26:27 +03:00
{
description = "NVIM Configuration";
inputs = {
# nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
2023-04-02 13:26:27 +03:00
flake-utils.url = "github:numtide/flake-utils";
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
# inputs.nixpkgs.follows = "nixpkgs";
2024-03-24 18:25:13 +02:00
};
2023-04-02 13:26:27 +03:00
};
nixConfig = {
trusted-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
2023-04-02 13:26:27 +03:00
outputs = inputs @ {
nixpkgs,
flake-utils,
neovim-nightly-overlay,
2023-04-02 13:26:27 +03:00
...
}:
flake-utils.lib.eachDefaultSystem (system: let
2024-03-24 18:25:13 +02:00
overlayFlakeInputs = prev: final: {
neovim = neovim-nightly-overlay.packages.${system}.default.overrideAttrs (oa: {
2024-06-22 17:33:30 +03:00
nativeBuildInputs = oa.nativeBuildInputs ++ [final.libtermkey];
});
2023-04-02 13:26:27 +03:00
};
2024-03-24 18:25:13 +02:00
overlayLazyVim = prev: final: {
lazyVim = import ./packages/lazyVim.nix {
pkgs = final;
};
2023-04-02 13:26:27 +03:00
};
2024-03-24 18:25:13 +02:00
pkgs = import nixpkgs {
inherit system;
overlays = [overlayFlakeInputs overlayLazyVim];
2023-04-02 13:26:27 +03:00
};
2024-03-24 18:25:13 +02:00
in rec {
2024-03-24 18:34:32 +02:00
packages.lazyVim = pkgs.lazyVim;
apps.lazyVim = {
2024-03-24 18:25:13 +02:00
type = "app";
program = "${packages.default}/bin/nvim";
2023-04-02 13:26:27 +03:00
};
2024-03-24 18:34:32 +02:00
packages.default = packages.lazyVim;
apps.default = apps.lazyVim;
2023-04-02 13:26:27 +03:00
});
}