diff options
author | Robert Helgesson <robert@rycee.net> | 2020-09-04 16:02:05 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-09-04 16:02:17 +0200 |
commit | a063b73d5cf2d741f5f873897974d1a4c3e36d3d (patch) | |
tree | 535b273147ad5a6832b9b41c5400e5e60cd9706e /modules/targets/darwin.nix | |
parent | bfc66df13dc941361f5af92eaf88f2ea5db39722 (diff) | |
parent | d3aee544b686a72b2bb7eeb379f72c6b6b2665b7 (diff) |
Merge PR #1460
Diffstat (limited to 'modules/targets/darwin.nix')
-rw-r--r-- | modules/targets/darwin.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/targets/darwin.nix b/modules/targets/darwin.nix new file mode 100644 index 00000000000..0d434234bbb --- /dev/null +++ b/modules/targets/darwin.nix @@ -0,0 +1,14 @@ +{ 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"; + }; +} |