diff options
Diffstat (limited to 'hosts')
| -rw-r--r-- | hosts/RyanMac/configuration.nix | 23 | ||||
| -rw-r--r-- | hosts/RyanMac/taps.nix | 16 |
2 files changed, 34 insertions, 5 deletions
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 | |||
| 4 | 4 | ||
| 5 | defaultBrowser = "zen"; | 5 | defaultBrowser = "zen"; |
| 6 | 6 | ||
| 7 | thirdPartyTaps = import ./taps.nix; | ||
| 8 | |||
| 7 | pinnedNixpkgs = pkgs.writeText "flake-registry.json" (builtins.toJSON { | 9 | pinnedNixpkgs = pkgs.writeText "flake-registry.json" (builtins.toJSON { |
| 8 | version = 2; | 10 | version = 2; |
| 9 | flakes = [ | 11 | flakes = [ |
| @@ -41,6 +43,7 @@ let | |||
| 41 | in { | 43 | in { |
| 42 | # Modules | 44 | # Modules |
| 43 | imports = [ | 45 | imports = [ |
| 46 | inputs.nix-homebrew.darwinModules.nix-homebrew | ||
| 44 | ../../modules/darwin/random-wallpaper.nix | 47 | ../../modules/darwin/random-wallpaper.nix |
| 45 | ]; | 48 | ]; |
| 46 | 49 | ||
| @@ -107,28 +110,38 @@ in { | |||
| 107 | zsh.enable = true; | 110 | zsh.enable = true; |
| 108 | }; | 111 | }; |
| 109 | 112 | ||
| 113 | # Install homebrew itself | ||
| 114 | nix-homebrew = { | ||
| 115 | enable = true; | ||
| 116 | enableRosetta = true; | ||
| 117 | user = "${username}"; | ||
| 118 | mutableTaps = false; | ||
| 119 | taps = thirdPartyTaps; | ||
| 120 | trust.taps = builtins.attrNames thirdPartyTaps; | ||
| 121 | }; | ||
| 122 | |||
| 110 | # Install homebrew casks/apps | 123 | # Install homebrew casks/apps |
| 111 | homebrew = { | 124 | homebrew = { |
| 112 | enable = true; | 125 | enable = true; |
| 113 | 126 | ||
| 114 | onActivation = { | 127 | onActivation = { |
| 115 | cleanup = "zap"; | 128 | cleanup = "zap"; |
| 116 | extraFlags = [ "--force-cleanup" ]; | ||
| 117 | }; | 129 | }; |
| 118 | 130 | ||
| 119 | taps = [ | 131 | global.brewfile = true; |
| 120 | "netbirdio/tap" | 132 | |
| 121 | "FelixKratz/formulae" | 133 | taps = builtins.attrNames thirdPartyTaps; |
| 122 | ]; | ||
| 123 | 134 | ||
| 124 | brews = [ | 135 | brews = [ |
| 125 | "borders" | 136 | "borders" |
| 137 | "mqttx-cli" | ||
| 126 | ]; | 138 | ]; |
| 127 | 139 | ||
| 128 | casks = [ | 140 | casks = [ |
| 129 | "utm" | 141 | "utm" |
| 130 | "ghostty" | 142 | "ghostty" |
| 131 | "zen" | 143 | "zen" |
| 144 | "ungoogled-chromium" | ||
| 132 | "tailscale-app" | 145 | "tailscale-app" |
| 133 | "netbird-ui" | 146 | "netbird-ui" |
| 134 | ]; | 147 | ]; |
diff --git a/hosts/RyanMac/taps.nix b/hosts/RyanMac/taps.nix new file mode 100644 index 0000000..12235d8 --- /dev/null +++ b/hosts/RyanMac/taps.nix | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | { | ||
| 2 | "netbirdio/homebrew-tap" = builtins.fetchGit { | ||
| 3 | url = "https://github.com/netbirdio/homebrew-tap"; | ||
| 4 | rev = "98a5d193c8d2c03b639aad03159004c64496c3e7"; | ||
| 5 | }; | ||
| 6 | |||
| 7 | "FelixKratz/homebrew-formulae" = builtins.fetchGit { | ||
| 8 | url = "https://github.com/FelixKratz/homebrew-formulae"; | ||
| 9 | rev = "70b2071488b61c14f773ce9e1bf6626ee851981a"; | ||
| 10 | }; | ||
| 11 | |||
| 12 | "emqx/homebrew-mqttx" = builtins.fetchGit { | ||
| 13 | url = "https://github.com/emqx/homebrew-mqttx"; | ||
| 14 | rev = "9889d741ba44940340d12dcad31fe867f62e7ea8"; | ||
| 15 | }; | ||
| 16 | } | ||
