aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock55
-rw-r--r--flake.nix19
-rw-r--r--hosts/RyanMac/configuration.nix16
-rw-r--r--hosts/RyanMac/taps.nix16
-rw-r--r--users/ryan/home.nix1
5 files changed, 83 insertions, 24 deletions
diff --git a/flake.lock b/flake.lock
index 64fbeb0..68e30b4 100644
--- a/flake.lock
+++ b/flake.lock
@@ -90,6 +90,58 @@
90 "type": "github" 90 "type": "github"
91 } 91 }
92 }, 92 },
93 "homebrew-felixkratz": {
94 "flake": false,
95 "locked": {
96 "lastModified": 1780547371,
97 "narHash": "sha256-QGCVV5N1QC56GQK3ck2YJ6J6/S8SQ6rTElz69y58078=",
98 "owner": "FelixKratz",
99 "repo": "homebrew-formulae",
100 "rev": "70b2071488b61c14f773ce9e1bf6626ee851981a",
101 "type": "github"
102 },
103 "original": {
104 "owner": "FelixKratz",
105 "repo": "homebrew-formulae",
106 "type": "github"
107 }
108 },
109 "homebrew-netbird": {
110 "flake": false,
111 "locked": {
112 "lastModified": 1784299581,
113 "narHash": "sha256-gx50DPWWbLYRU/zn2JgEnlgU/nVsg3zXSY24+n0lvZ4=",
114 "owner": "netbirdio",
115 "repo": "homebrew-tap",
116 "rev": "f1a16c6dbb59951f87a5151d53245230f778e949",
117 "type": "github"
118 },
119 "original": {
120 "owner": "netbirdio",
121 "repo": "homebrew-tap",
122 "type": "github"
123 }
124 },
125 "netbird-tui": {
126 "inputs": {
127 "nixpkgs": [
128 "nixpkgs"
129 ]
130 },
131 "locked": {
132 "lastModified": 1784513029,
133 "narHash": "sha256-m9sIguYjsuHz3IWwmNOlvuVTT0Cspe61Y9UyjM3pRVk=",
134 "ref": "refs/heads/main",
135 "rev": "efa74d02ad42ee7aeaf5c97240929063118c6252",
136 "revCount": 1,
137 "type": "git",
138 "url": "https://git.rschanz.org/netbird-tui-flake"
139 },
140 "original": {
141 "type": "git",
142 "url": "https://git.rschanz.org/netbird-tui-flake"
143 }
144 },
93 "nix-homebrew": { 145 "nix-homebrew": {
94 "inputs": { 146 "inputs": {
95 "brew-src": "brew-src" 147 "brew-src": "brew-src"
@@ -146,6 +198,9 @@
146 "home-manager": "home-manager", 198 "home-manager": "home-manager",
147 "homebrew-cask": "homebrew-cask", 199 "homebrew-cask": "homebrew-cask",
148 "homebrew-core": "homebrew-core", 200 "homebrew-core": "homebrew-core",
201 "homebrew-felixkratz": "homebrew-felixkratz",
202 "homebrew-netbird": "homebrew-netbird",
203 "netbird-tui": "netbird-tui",
149 "nix-homebrew": "nix-homebrew", 204 "nix-homebrew": "nix-homebrew",
150 "nixpkgs": "nixpkgs", 205 "nixpkgs": "nixpkgs",
151 "virby": "virby", 206 "virby": "virby",
diff --git a/flake.nix b/flake.nix
index 5353cf8..023a368 100644
--- a/flake.nix
+++ b/flake.nix
@@ -11,7 +11,13 @@
11 url = "github:nix-community/home-manager"; 11 url = "github:nix-community/home-manager";
12 inputs.nixpkgs.follows = "nixpkgs"; 12 inputs.nixpkgs.follows = "nixpkgs";
13 }; 13 };
14 zen-browser = { # Used exclusively for HM module, Zen is installed via cask 14 # My packages
15 netbird-tui = {
16 url = "git+https://git.rschanz.org/netbird-tui-flake";
17 inputs.nixpkgs.follows = "nixpkgs";
18 };
19 # End my packages
20 zen-browser = { # Used exclusively for HM module, Zen is installed via cask (on macos)
15 url = "github:0xc000022070/zen-browser-flake"; 21 url = "github:0xc000022070/zen-browser-flake";
16 inputs = { 22 inputs = {
17 nixpkgs.follows = "nixpkgs"; 23 nixpkgs.follows = "nixpkgs";
@@ -29,6 +35,14 @@
29 }; 35 };
30 # Linux builder on macos 36 # Linux builder on macos
31 virby.url = "github:quinneden/virby-nix-darwin"; 37 virby.url = "github:quinneden/virby-nix-darwin";
38 homebrew-netbird = {
39 url = "github:netbirdio/homebrew-tap";
40 flake = false;
41 };
42 homebrew-felixkratz = {
43 url = "github:FelixKratz/homebrew-formulae";
44 flake = false;
45 };
32 }; 46 };
33 47
34 outputs = { nixpkgs, home-manager, ... }@inputs: { 48 outputs = { nixpkgs, home-manager, ... }@inputs: {
@@ -36,7 +50,8 @@
36 system = "aarch64-darwin"; 50 system = "aarch64-darwin";
37 specialArgs = { inherit inputs; }; 51 specialArgs = { inherit inputs; };
38 modules = [ 52 modules = [
39 { nixpkgs.config.allowUnfree = true; } 53 { nixpkgs.config.allowUnfree = true;
54 nixpkgs.overlays = [ inputs.netbird-tui.overlays.default ]; }
40 inputs.virby.darwinModules.default 55 inputs.virby.darwinModules.default
41 ./hosts/RyanMac/configuration.nix 56 ./hosts/RyanMac/configuration.nix
42 home-manager.darwinModules.home-manager 57 home-manager.darwinModules.home-manager
diff --git a/hosts/RyanMac/configuration.nix b/hosts/RyanMac/configuration.nix
index 78f2cd4..e19490d 100644
--- a/hosts/RyanMac/configuration.nix
+++ b/hosts/RyanMac/configuration.nix
@@ -4,7 +4,10 @@ let
4 4
5 defaultBrowser = "zen"; 5 defaultBrowser = "zen";
6 6
7 thirdPartyTaps = import ./taps.nix; 7 thirdPartyTaps = {
8 "netbirdio/homebrew-tap" = inputs.homebrew-netbird;
9 "FelixKratz/homebrew-formulae" = inputs.homebrew-felixkratz;
10 };
8 11
9 pinnedNixpkgs = pkgs.writeText "flake-registry.json" (builtins.toJSON { 12 pinnedNixpkgs = pkgs.writeText "flake-registry.json" (builtins.toJSON {
10 version = 2; 13 version = 2;
@@ -164,7 +167,10 @@ in {
164 enableRosetta = true; 167 enableRosetta = true;
165 user = "${username}"; 168 user = "${username}";
166 mutableTaps = false; 169 mutableTaps = false;
167 taps = thirdPartyTaps; 170 taps = {
171 "homebrew/homebrew-core" = inputs.homebrew-core;
172 "homebrew/homebrew-cask" = inputs.homebrew-cask;
173 } // thirdPartyTaps;
168 trust.taps = builtins.attrNames thirdPartyTaps; 174 trust.taps = builtins.attrNames thirdPartyTaps;
169 }; 175 };
170 176
@@ -178,11 +184,9 @@ in {
178 184
179 global.brewfile = true; 185 global.brewfile = true;
180 186
181 taps = builtins.attrNames thirdPartyTaps; 187 taps = builtins.attrNames config.nix-homebrew.taps;
182 188
183 brews = [ 189 brews = [ ];
184 "mqttx-cli"
185 ];
186 190
187 casks = [ 191 casks = [
188 "utm" 192 "utm"
diff --git a/hosts/RyanMac/taps.nix b/hosts/RyanMac/taps.nix
deleted file mode 100644
index 12235d8..0000000
--- a/hosts/RyanMac/taps.nix
+++ /dev/null
@@ -1,16 +0,0 @@
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}
diff --git a/users/ryan/home.nix b/users/ryan/home.nix
index 2f1b138..6f17b18 100644
--- a/users/ryan/home.nix
+++ b/users/ryan/home.nix
@@ -148,6 +148,7 @@
148 blender 148 blender
149 nerd-fonts.anonymice 149 nerd-fonts.anonymice
150 jujutsu 150 jujutsu
151 netbird-tui
151 ]; 152 ];
152 153
153 # Home Manager is pretty good at managing dotfiles. The primary way to manage 154 # Home Manager is pretty good at managing dotfiles. The primary way to manage