flake: Filter packages and shells by platform

This commit is contained in:
Mikael 2024-08-22 16:33:25 +02:00
parent 3fcb862933
commit 38646193bb
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -94,7 +94,8 @@
packages = eachFlakeSystem (system: let pkgs = self.legacyPackages.${system};
in load ./package "package"
|> lib.mapAttrs (name: pkg: self.legacyPackages.${system}.callPackage pkg { }));
|> lib.mapAttrs (name: pkg: self.legacyPackages.${system}.callPackage pkg { })
|> lib.filterAttrs (name: pkg: lib.meta.availableOn { inherit system; } pkg));
nixosModules = load ./nixos/module "module";
@ -120,7 +121,8 @@
homeConfigurations = load ./home/config "home";
devShells = eachFlakeSystem (system: load ./shell "shell"
|> lib.mapAttrs (name: shell: self.legacyPackages.${system}.callPackage shell { }));
|> lib.mapAttrs (name: shell: self.legacyPackages.${system}.callPackage shell { })
|> lib.filterAttrs (name: shell: lib.meta.availableOn { inherit system; } shell));
checks = eachFlakeSystem (system: {
packages = self.packages.${system};