2020-08-28 15:42:05 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-11-02 18:41:53 +01:00
|
|
|
config = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin {
|
2020-08-28 15:42:05 +02:00
|
|
|
# Install MacOS applications to the user environment.
|
|
|
|
home.file."Applications/Home Manager Apps".source = let
|
|
|
|
apps = pkgs.buildEnv {
|
|
|
|
name = "home-manager-applications";
|
|
|
|
paths = config.home.packages;
|
|
|
|
pathsToLink = "/Applications";
|
|
|
|
};
|
|
|
|
in "${apps}/Applications";
|
|
|
|
};
|
|
|
|
}
|