nixos-configs/apps/nix/packages.nix
matt1432 d3e9a1b1d7
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(flake): expose appsPackages
2024-11-23 19:35:01 -05:00

14 lines
289 B
Nix

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