diff --git a/nix-darwin/configuration.nix b/nix-darwin/configuration.nix index 53db094..58fed7f 100644 --- a/nix-darwin/configuration.nix +++ b/nix-darwin/configuration.nix @@ -1,11 +1,33 @@ -{ config, pkgs, ... }: +{ config, pkgs, ... }: let + tex = pkgs.texlive.combine { + inherit (pkgs.texlive) scheme-medium + latexmk + amsmath; + }; +in { imports = [ ./homebrew.nix ./yabai-skhd.nix ]; # List packages installed in system profile. To search by name, run: # $ nix-env -qaP | grep wget - environment.systemPackages = [ - pkgs.vim - ]; + environment = { + variables = { + EDITOR = "vim"; + VISUAL = "vim"; + }; + systemPackages = with pkgs; [ + vim + imagemagick + ripgrep + direnv + nix-direnv + gnupg + + rustup + elan + poetry + tex + ]; + }; # Auto upgrade nix package and the daemon service. services = { diff --git a/nix-darwin/homebrew.nix b/nix-darwin/homebrew.nix index 3a3f7c0..6957b7d 100644 --- a/nix-darwin/homebrew.nix +++ b/nix-darwin/homebrew.nix @@ -2,12 +2,60 @@ { homebrew = { enable = true; + onActivation = { + cleanup = "zap"; + autoUpdate = false; + upgrade = false; + }; + brews = [ + "pinentry-mac" + ]; casks = [ + # System monitoring + "grandperspective" + "lulu" + "xrg" + + # Desktop Environment "karabiner-elements" + "kando" + + # Inputs + "wacom-tablet" + + # Multimedia "vlc" + "darktable" + "adobe-dng-converter" + + # Communications + "signal" + "slack" + "discord" + "zoom" + + # Browsing + "firefox" + "zotero" + "anki" + "skim" + + # Editors + "emacs-mac" + "arduino-ide" + "blender" + "inkscape" + + # Terminal + "iterm2" + + # Fonts + "font-source-code-pro" ]; taps = [ + "koekeishiya/formulae" "railwaycat/emacsmacport" + "caskroom/cask" ]; }; }