From 8fd1b6c982d14a6eb7e8e2995cb9ee235aaf545b Mon Sep 17 00:00:00 2001 From: derped Date: Mon, 11 Sep 2023 20:59:03 +0200 Subject: [PATCH] Add linter. --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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); };