diff --git a/src/dotfiles/apps.nix b/src/dotfiles/apps.nix index 4e0c4a4..7a58fe9 100644 --- a/src/dotfiles/apps.nix +++ b/src/dotfiles/apps.nix @@ -6,24 +6,22 @@ }: let pkgs = inputs.nixpkgs.legacyPackages.${system}; - - styleCheck = pkgs.writeShellApplication { - name = "style-check"; - runtimeInputs = [ - formatter - pkgs.statix - pkgs.deadnix - ]; - text = '' - treefmt --fail-on-change - statix check . - deadnix --fail --no-lambda-pattern-names --no-underscore . - ''; - }; in { style-check = { type = "app"; - program = lib.getExe styleCheck; + program = lib.getExe (pkgs.writeShellApplication { + name = "style-check"; + runtimeInputs = [ + formatter + pkgs.statix + pkgs.deadnix + ]; + text = '' + treefmt --fail-on-change + statix check . + deadnix --fail --no-lambda-pattern-names --no-underscore . + ''; + }); }; }