rix101/modules/home-manager/darwin-trampolines/default.nix

21 lines
541 B
Nix
Raw Normal View History

2023-11-17 14:58:59 +01:00
{ 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"
'';
};
};
}