nixos-configs/apps/default.nix
matt1432 546eda3ee2
All checks were successful
Discord / discord commits (push) Has been skipped
feat: refactor to add apps README
2025-01-20 12:34:07 -05:00

17 lines
284 B
Nix

{
pkgs,
self,
...
}: let
inherit (pkgs.lib) getExe mapAttrs' nameValuePair removePrefix;
mkApp = pkg: {
program = getExe pkg;
type = "app";
};
in
mapAttrs' (
n: v:
nameValuePair (removePrefix "app-" n) (mkApp v)
)
self.appsPackages.${pkgs.system}