feat(apps): add to nixFastBuild and clean up nix code

This commit is contained in:
matt1432 2024-11-15 13:39:20 -05:00
parent 655eac9ad6
commit a67f0fd422
19 changed files with 409 additions and 57 deletions

13
checks/apps.nix Normal file
View file

@ -0,0 +1,13 @@
{
pkgs,
self,
}: let
inherit (pkgs.lib) mapAttrs' nameValuePair removeAttrs removeSuffix;
in
mapAttrs'
(name: app:
nameValuePair "app-${name}" (pkgs.symlinkJoin {
name = "app-${name}";
paths = [(removeSuffix "/bin/${name}" (toString app.program))];
}))
(removeAttrs self.apps.${pkgs.system} ["genflake"])

View file

@ -2,6 +2,7 @@
pkgs,
self,
}: let
apps = import ./apps.nix {inherit pkgs self;};
nixosMachines = import ./machines.nix {inherit pkgs self;};
in
nixosMachines
apps // nixosMachines