2023-11-17 14:58:59 +01:00
|
|
|
{ inputs, outputs, ... }:
|
|
|
|
{ lib, pkgs, config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ ];
|
|
|
|
|
|
|
|
options = { };
|
|
|
|
|
|
|
|
config = {
|
|
|
|
home.activation = lib.mkIf pkgs.stdenv.isDarwin {
|
2024-01-25 16:39:43 +01:00
|
|
|
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"
|
|
|
|
'';
|
2023-11-17 14:58:59 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|