diff --git a/flake.nix b/flake.nix index 7c4d047..195996a 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,12 @@ lib = nixpkgs.lib; fn = import ./fn.nix {inherit lib;}; mappedFormatter = builtins.mapAttrs (arch: packages: packages.default) alejandra.packages; + mappedApps = builtins.mapAttrs (_arch: packages: { + "lint" = { + type = "app"; + program = "${packages.statix}/bin/statix"; + }; + }) nixpkgs.legacyPackages; system = "x86_64-linux"; machineList = fn.lst { p = toString ./machines; @@ -68,6 +74,7 @@ }; }; in { + apps = mappedApps; formatter = mappedFormatter; nixosConfigurations = lib.listToAttrs (map nixosSystemFor machineList); };