From b46d42c560eb97f214d0b767c0ffee44711ecfba Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Thu, 25 Jun 2026 00:14:18 -0400 Subject: Various changes. Homebrew is now fully declarative --- hosts/RyanMac/configuration.nix | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'hosts/RyanMac/configuration.nix') diff --git a/hosts/RyanMac/configuration.nix b/hosts/RyanMac/configuration.nix index c964d97..16e1006 100644 --- a/hosts/RyanMac/configuration.nix +++ b/hosts/RyanMac/configuration.nix @@ -4,6 +4,8 @@ let defaultBrowser = "zen"; + thirdPartyTaps = import ./taps.nix; + pinnedNixpkgs = pkgs.writeText "flake-registry.json" (builtins.toJSON { version = 2; flakes = [ @@ -41,6 +43,7 @@ let in { # Modules imports = [ + inputs.nix-homebrew.darwinModules.nix-homebrew ../../modules/darwin/random-wallpaper.nix ]; @@ -107,28 +110,38 @@ in { zsh.enable = true; }; + # Install homebrew itself + nix-homebrew = { + enable = true; + enableRosetta = true; + user = "${username}"; + mutableTaps = false; + taps = thirdPartyTaps; + trust.taps = builtins.attrNames thirdPartyTaps; + }; + # Install homebrew casks/apps homebrew = { enable = true; onActivation = { cleanup = "zap"; - extraFlags = [ "--force-cleanup" ]; }; - taps = [ - "netbirdio/tap" - "FelixKratz/formulae" - ]; + global.brewfile = true; + + taps = builtins.attrNames thirdPartyTaps; brews = [ "borders" + "mqttx-cli" ]; casks = [ "utm" "ghostty" "zen" + "ungoogled-chromium" "tailscale-app" "netbird-ui" ]; -- cgit v1.3