summary refs log tree commit diff stats
path: root/system/settings/darwin.nix
blob: 996e5ca9b858100de399442a8ccd1c2e18cb841c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ config, pkgs, ... }:

{
  services.nix-daemon = {
    enable = true;
    enableSocketListener = true;
  };

  programs.zsh = {
    enable = true;
    enableCompletion = false; # Causes >2s startup time, overlaps home-manager config
    enableBashCompletion = true;
    loginShellInit = builtins.readFile "/System/Library/Templates/Data/private/etc/zprofile";
    interactiveShellInit = ''
      if [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then
        setopt COMBINING_CHARS
      fi
    '';
  };

  environment.systemPackages = with pkgs; [
    watch
    coreutils-prefixed
  ];
}