From 20199685482e61b3ca1c7ac549ab2761063cbf91 Mon Sep 17 00:00:00 2001 From: PatrickDaG <58092422+PatrickDaG@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:14:59 +0000 Subject: [PATCH] flake: add overlay as an alternative to legacyPackages (#668) --- flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/flake.nix b/flake.nix index 0c033c8a..8c6ae7cc 100644 --- a/flake.nix +++ b/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;