fix(macos): trampoline apps

This commit is contained in:
reo101 2023-11-17 15:58:59 +02:00
parent c707909f4f
commit 01240450d2
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{ inputs, outputs, ... }:
{ lib, pkgs, config, ... }:
{
imports = [ ];
options = { };
config = {
home.activation = lib.mkIf pkgs.stdenv.isDarwin {
trampolineApps = let
mac-app-util = inputs.mac-app-util.packages.${pkgs.stdenv.system}.default;
in lib.hm.dag.entryAfter [ "writeBoundary" ] ''
fromDir="$HOME/Applications/Home Manager Apps"
toDir="$HOME/Applications/Home Manager Trampolines"
${mac-app-util}/bin/mac-app-util sync-trampolines "$fromDir" "$toDir"
'';
};
};
}