mirror of
https://github.com/nix-community/home-manager
synced 2024-09-12 06:16:33 +02:00
Add new options Darwin options: - `targets.darwin.defaults` This adds options for configuring macOS through the `defaults(1)` system. This option can be used to manipulate a vast majority of user settings for macOS and its applications. This is implemented using freeform modules and includes additional descriptions and type information for some useful options. - `targets.darwin.keybindings` This adds options for configuring the default keybindings for macOS text fields. - `targets.darwin.search` This adds options for configuring the default search engine for macOS.
17 lines
568 B
Nix
17 lines
568 B
Nix
{ 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";
|
|
};
|
|
}
|