Files
nvim/old/flake.nix

60 lines
1.6 KiB
Nix
Raw Normal View History

2023-04-02 13:26:27 +03:00
{
description = "NVIM Configuration";
inputs = {
2024-11-19 11:16:38 +02:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
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?ref=54f4dbfdc4304444c43b11be1e63471005aa1d05";
2024-11-21 21:18:08 +02:00
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"
2024-11-14 19:53:26 +02:00
"https://palkx.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
2024-11-14 19:53:26 +02:00
"palkx.cachix.org-1:qaQoL5CXpGzUbqsIvxUEL7wUhoIrjV0Q8M4HbJ8/8S4="
];
};
2024-11-14 19:53:26 +02:00
outputs =
inputs@{
nixpkgs,
flake-utils,
neovim-nightly-overlay,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
overlayFlakeInputs = prev: final: {
neovim = neovim-nightly-overlay.packages.${system}.default.overrideAttrs (oa: {
nativeBuildInputs = oa.nativeBuildInputs ++ [ final.libtermkey ];
});
2024-03-24 18:25:13 +02:00
};
2024-11-14 19:53:26 +02:00
overlayLazyVim = prev: final: { lazyVim = import ./packages/lazyVim.nix { pkgs = final; }; };
pkgs = import nixpkgs {
inherit system;
overlays = [
overlayFlakeInputs
overlayLazyVim
];
};
in
rec {
packages.lazyVim = pkgs.lazyVim;
apps.lazyVim = {
type = "app";
program = "${packages.default}/bin/nvim";
};
packages.default = packages.lazyVim;
apps.default = apps.lazyVim;
}
);
2023-04-02 13:26:27 +03:00
}