| 1 | { pkgs, ... }: |
| 2 | { |
| 3 | environment.systemPackages = with pkgs; [ |
| 4 | pinentry_mac |
| 5 | ]; |
| 6 | |
| 7 | # Custom configuration modules in "modules" are shared between users, |
| 8 | # and can be configured in this "shared" namespace |
| 9 | shared.darwin = { |
| 10 | # macAppStoreApps = [ "wireguard" ]; |
| 11 | }; |
| 12 | |
| 13 | system.defaults.NSGlobalDomain."com.apple.trackpad.scaling" = 1.0; |
| 14 | |
| 15 | # Create /etc/zshrc that loads the nix-darwin environment. |
| 16 | programs = { |
| 17 | gnupg.agent.enable = true; |
| 18 | zsh.enable = true; # default shell on catalina |
| 19 | }; |
| 20 | |
| 21 | # When opening an interactive shell that isnt fish move into fish |
| 22 | programs.zsh = { |
| 23 | interactiveShellInit = '' |
| 24 | if [[ $(${pkgs.procps}/bin/ps -p $PPID -o comm) != "fish" && -z ''${ZSH_EXUCTION_STRING} ]] |
| 25 | then |
| 26 | [[ -o login ]] && LOGIN_OPTION='--login' || LOGIN_OPTION="" |
| 27 | exec ${pkgs.fish}/bin/fish $LOGIN_OPTION |
| 28 | fi |
| 29 | ''; |
| 30 | }; |
| 31 | programs.fish.enable = true; |
| 32 | |
| 33 | # Use homebrew to install casks |
| 34 | homebrew = { |
| 35 | brews = [ |
| 36 | "imagemagick" |
| 37 | "opam" |
| 38 | ]; |
| 39 | |
| 40 | casks = [ |
| 41 | "battle-net" |
| 42 | "stremio" |
| 43 | # "alt-tab" |
| 44 | "legcord" |
| 45 | "zulip" |
| 46 | "zen" |
| 47 | "supertuxkart" |
| 48 | "sf-symbols" |
| 49 | "todoist" |
| 50 | |
| 51 | "mediosz/tap/swipeaerospace" |
| 52 | ]; |
| 53 | }; |
| 54 | } |