neovim from unstable

This commit is contained in:
Casper V. Kristensen 2024-07-01 22:29:12 +02:00
parent 63f29587c7
commit 751bf2bf81
2 changed files with 21 additions and 1 deletions

View file

@ -1,3 +1,5 @@
{...}: { {...}: {
imports = []; imports = [
./neovim.nix
];
} }

18
overlays/neovim.nix Normal file
View file

@ -0,0 +1,18 @@
{
home-manager,
home-manager-unstable,
nixpkgs-unstable,
...
}: {
home-manager.users.caspervk = {
disabledModules = ["${home-manager}/modules/programs/neovim.nix"];
imports = ["${home-manager-unstable}/modules/programs/neovim.nix"];
};
nixpkgs.overlays = [
(self: super: {
# Home-manager uses the neovim-unwrapped package for the neovim module
neovim-unwrapped = nixpkgs-unstable.legacyPackages.${super.system}.neovim-unwrapped;
vimPlugins = nixpkgs-unstable.legacyPackages.${super.system}.vimPlugins;
})
];
}