From ca50606b98774565ba5f31caa6ec33601471480e Mon Sep 17 00:00:00 2001 From: Chris Wells Date: Thu, 23 Oct 2025 11:11:51 -0500 Subject: Debugging --- flake.nix | 57 +++++++++++++++++++++++++++++++++------------------------ 1 file changed, 33 insertions(+), 24 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index a9cf2e1..6ab086f 100644 --- a/flake.nix +++ b/flake.nix @@ -15,35 +15,44 @@ }; }; - outputs = inputs@{ self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs self; } { - systems = import inputs.systems; + outputs = inputs@{ self, flake-parts, ... }: let + weznix = import ./modules/flake-module.nix; + in flake-parts.lib.mkFlake { inherit inputs self; } { + systems = import inputs.systems; - imports = [ - inputs.treefmt-nix.flakeModule - ]; + imports = [ + inputs.treefmt-nix.flakeModule + weznix + ]; - flake = { - overlays.default = import ./overlays { nixToLua = import inputs.nixToLua; }; - flakeModules.default = import ./modules/flake-module.nix; - }; + flake = { + overlays.default = import ./overlays { nixToLua = import inputs.nixToLua; }; + flakeModules.default = weznix; + }; - perSystem = { system, pkgs, config, ... }: { - treefmt = { - programs.nixfmt = { - enable = true; - strict = true; + perSystem = { system, pkgs, config, ... }: { + treefmt = { + programs.nixfmt = { + enable = true; + strict = true; + }; + }; + + devShells.default = pkgs.mkShellNoCC { + inputsFrom = [ config.treefmt.devShell ]; + nativeBuildInputs = with pkgs; [ + nixd + statix + deadnix + ]; + }; + + weznix = { + wrapConfig = true; + luaPath = ./test; }; - }; - devShells.default = pkgs.mkShellNoCC { - inputsFrom = [ config.treefmt.devShell ]; - nativeBuildInputs = with pkgs; [ - nixd - statix - deadnix - ]; }; - }; - }; + }; } -- cgit v1.2.3