mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
flake: add overlay as an alternative to legacyPackages (#668)
This commit is contained in:
parent
77a3f3c298
commit
2019968548
1 changed files with 12 additions and 0 deletions
12
flake.nix
12
flake.nix
|
@ -127,6 +127,18 @@
|
|||
nixDarwinModules.nixvim = import ./wrappers/darwin.nix modules;
|
||||
rawModules.nixvim = nixvimModules;
|
||||
|
||||
overlays.default = final: prev: {
|
||||
nixvim = rec {
|
||||
makeNixvimWithModule = import ./wrappers/standalone.nix prev modules;
|
||||
makeNixvim = configuration:
|
||||
makeNixvimWithModule {
|
||||
module = {
|
||||
config = configuration;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
templates = let
|
||||
simple = {
|
||||
path = ./templates/simple;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue