From 04263beb7f170a1c535832461901173410ca81d8 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 17 Nov 2023 09:34:09 -0800 Subject: [PATCH] Make a module to supply overlay --- flake.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index c2620ff..7c10fbe 100644 --- a/flake.nix +++ b/flake.nix @@ -2,9 +2,16 @@ description = "Fudo Nix Helper Functions"; outputs = { self, ... }: { - overlay = import ./overlay.nix; + overlays = rec { + default = lib; + lib = import ./overlay.nix; + }; - nixosModule = import ./module.nix; + nixosModules = rec { + default = fudo; + fudo = import ./module.nix; + lib = { ... }: { config.nixpkgs.overlays = [ self.overlays.default ]; }; + }; lib = import ./lib.nix; };