diff --git a/flake.lock b/flake.lock index c46be9e..639716c 100644 Binary files a/flake.lock and b/flake.lock differ diff --git a/flake.nix b/flake.nix index c110648..3ee74ba 100644 --- a/flake.nix +++ b/flake.nix @@ -60,6 +60,7 @@ "gcolor" "tailray" "nh" + "gh-notify" # 3rd party packages "wiremix" @@ -74,13 +75,29 @@ in base // mappedPkgs; - formatter = config.packages.alejandra-custom; + # Formatter that traverses the entire tree and formats Nix files + formatter = pkgs.writeShellApplication { + name = "nix3-fmt-wrapper"; + + runtimeInputs = [ + config.packages.alejandra-custom + pkgs.fd + ]; + + text = '' + fd "$@" -t f -e nix -x alejandra -q '{}' + ''; + }; + devShells = { default = pkgs.mkShellNoCC { name = "nyxexprs"; packages = [pkgs.npins]; }; }; + + # In case I ever decide to use Hydra. + hydraJobs = self.packages; }; }; @@ -143,6 +160,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + gh-notify = { + url = "github:notashelf/gh-notify"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + # 3rd party flakes that I want to extract packages from wiremix = { url = "github:tsowell/wiremix";