mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-15 17:50:53 +00:00
f520832a47
Tested-by: supermarin@users.noreply.github.com
14 lines
402 B
Nix
14 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";
|
|
};
|
|
}
|