rix101/modules/home-manager/darwin-trampolines/default.nix
reo101 36e14ad3f6
style: format with nix fmt
Currently uses `nixpkgs-fmt`
2024-01-25 17:39:43 +02:00

22 lines
569 B
Nix

{ 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"
'';
};
};
}