diff options
| author | Chris Wells <chris@mathematicaster.org> | 2025-10-23 11:11:51 -0500 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2025-10-23 11:11:51 -0500 |
| commit | ca50606b98774565ba5f31caa6ec33601471480e (patch) | |
| tree | fda19026396c9d797bc43b9cc1d02caacd08c64a /flake.nix | |
| parent | c5f9420f4d111cccf4dc1bcc3ec35e75f68926e1 (diff) | |
| download | weznix-ca50606b98774565ba5f31caa6ec33601471480e.tar weznix-ca50606b98774565ba5f31caa6ec33601471480e.tar.gz weznix-ca50606b98774565ba5f31caa6ec33601471480e.tar.bz2 weznix-ca50606b98774565ba5f31caa6ec33601471480e.tar.lz weznix-ca50606b98774565ba5f31caa6ec33601471480e.tar.xz weznix-ca50606b98774565ba5f31caa6ec33601471480e.tar.zst weznix-ca50606b98774565ba5f31caa6ec33601471480e.zip | |
Debugging
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 57 |
1 files changed, 33 insertions, 24 deletions
@@ -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 - ]; }; - }; - }; + }; } |
