Skip to content

Commit

Permalink
flake: add overlay as an alternative to legacyPackages (nix-community…
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickDaG authored Nov 1, 2023
1 parent 77a3f3c commit 2019968
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2019968

Please sign in to comment.