d3aee544b6
Currently, this module makes sure that `/Applications` directories for packages in `home.packages` get linked into the user's environment.
15 lines
402 B
Nix
15 lines
402 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = lib.mkIf pkgs.stdenv.hostPlatform.isDarwin {
|
|
# 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";
|
|
};
|
|
}
|