aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
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
- ];
};
- };
- };
+ };
}