aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/home-manager/modules/targets/darwin.nix
blob: 118321e8f117ddb761769cbdb5c08a302926298d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ config, lib, pkgs, ... }:

{
  # Disabled for now due to conflicting behavior with nix-darwin. See
  # https://github.com/nix-community/home-manager/issues/1341#issuecomment-687286866
  config = lib.mkIf (false && 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";
  };
}