From a463960781edfc0e0680b8f619d23918e5810a0c Mon Sep 17 00:00:00 2001 From: Archit Gupta Date: Wed, 13 Sep 2023 23:11:11 -0700 Subject: [PATCH] Add module for use in module flakes --- nix/flakelightModules/flakelightModule.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nix/flakelightModules/flakelightModule.nix diff --git a/nix/flakelightModules/flakelightModule.nix b/nix/flakelightModules/flakelightModule.nix new file mode 100644 index 0000000..74f1578 --- /dev/null +++ b/nix/flakelightModules/flakelightModule.nix @@ -0,0 +1,11 @@ +# flakelight -- Framework for simplifying flake setup +# Copyright (C) 2023 Archit Gupta +# SPDX-License-Identifier: MIT + +# A Flakelight module for Flakelight module flakes + +{ flakelight, outputs, src, ... }: { + nixDir = src; + lib.mkFlake = flakelight.mkFlake.extend [ outputs.flakelightModules.default ]; + functor = self: self.lib.mkFlake; +}