aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorChris Wells <chris@mathematicaster.org>2025-10-23 11:11:51 -0500
committerChris Wells <chris@mathematicaster.org>2025-10-23 11:11:51 -0500
commitca50606b98774565ba5f31caa6ec33601471480e (patch)
treefda19026396c9d797bc43b9cc1d02caacd08c64a /flake.nix
parentc5f9420f4d111cccf4dc1bcc3ec35e75f68926e1 (diff)
downloadweznix-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.nix57
1 files changed, 33 insertions, 24 deletions
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
- ];
};
- };
- };
+ };
}