diff options
| author | Chris Wells <chris@mathematicaster.org> | 2025-10-22 09:24:40 -0500 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2025-10-22 09:24:40 -0500 |
| commit | 8d2ef7b4634ea4c2b9f2998ad2121813dcd6859d (patch) | |
| tree | c7e290745646f2e6d7b80c797106c4817314aa35 /flake.nix | |
| download | weznix-8d2ef7b4634ea4c2b9f2998ad2121813dcd6859d.tar weznix-8d2ef7b4634ea4c2b9f2998ad2121813dcd6859d.tar.gz weznix-8d2ef7b4634ea4c2b9f2998ad2121813dcd6859d.tar.bz2 weznix-8d2ef7b4634ea4c2b9f2998ad2121813dcd6859d.tar.lz weznix-8d2ef7b4634ea4c2b9f2998ad2121813dcd6859d.tar.xz weznix-8d2ef7b4634ea4c2b9f2998ad2121813dcd6859d.tar.zst weznix-8d2ef7b4634ea4c2b9f2998ad2121813dcd6859d.zip | |
Fixed up the code
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a9cf2e1 --- /dev/null +++ b/flake.nix @@ -0,0 +1,49 @@ +{ + description = "Wezterm configuration a la nixCats"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs"; + flake-parts.url = "github:hercules-ci/flake-parts"; + systems.url = "github:nix-systems/default"; + treefmt-nix = { + url = "github:numtide/treefmt-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nixToLua = { + url = "github:BirdeeHub/nixToLua"; + flake = false; + }; + }; + + outputs = inputs@{ self, flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs self; } { + systems = import inputs.systems; + + imports = [ + inputs.treefmt-nix.flakeModule + ]; + + flake = { + overlays.default = import ./overlays { nixToLua = import inputs.nixToLua; }; + flakeModules.default = import ./modules/flake-module.nix; + }; + + 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 + ]; + }; + }; + + }; +} |
