Moved to even more declarative setup

This commit is contained in:
2026-03-18 11:05:22 -06:00
parent 202f2cf234
commit d934b6c699
7 changed files with 104 additions and 9 deletions
Generated
+70
View File
@@ -1,5 +1,22 @@
{ {
"nodes": { "nodes": {
"brew-src": {
"flake": false,
"locked": {
"lastModified": 1769363988,
"narHash": "sha256-BiGPeulrDVetXP+tjxhMcGLUROZAtZIhU5m4MqawCfM=",
"owner": "Homebrew",
"repo": "brew",
"rev": "d01011cac6d72032c75fd2cd9489909e95d9faf2",
"type": "github"
},
"original": {
"owner": "Homebrew",
"ref": "5.0.12",
"repo": "brew",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -20,6 +37,38 @@
"type": "github" "type": "github"
} }
}, },
"homebrew-cask": {
"flake": false,
"locked": {
"lastModified": 1773852247,
"narHash": "sha256-AkpNFDmNNOPlhKIwuPNyHXAS/1s54SmBOls9fWj6oeM=",
"owner": "homebrew",
"repo": "homebrew-cask",
"rev": "a004af186494cfc80bf4894ebdddc0ccea8a2751",
"type": "github"
},
"original": {
"owner": "homebrew",
"repo": "homebrew-cask",
"type": "github"
}
},
"homebrew-core": {
"flake": false,
"locked": {
"lastModified": 1773849948,
"narHash": "sha256-CgI0Ma92BhAVXP+G9nb9Oe4zJuOrX6UWDRg88of5v14=",
"owner": "homebrew",
"repo": "homebrew-core",
"rev": "de21bcfa40ae1a5dd99cd791ee8f3cef6b75a54c",
"type": "github"
},
"original": {
"owner": "homebrew",
"repo": "homebrew-core",
"type": "github"
}
},
"nix-darwin": { "nix-darwin": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -40,6 +89,24 @@
"type": "github" "type": "github"
} }
}, },
"nix-homebrew": {
"inputs": {
"brew-src": "brew-src"
},
"locked": {
"lastModified": 1769437432,
"narHash": "sha256-8d7KnCpT2LweRvSzZYEGd9IM3eFX+A78opcnDM0+ndk=",
"owner": "zhaofengli-wip",
"repo": "nix-homebrew",
"rev": "a5409abd0d5013d79775d3419bcac10eacb9d8c5",
"type": "github"
},
"original": {
"owner": "zhaofengli-wip",
"repo": "nix-homebrew",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1773628058, "lastModified": 1773628058,
@@ -59,7 +126,10 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"homebrew-cask": "homebrew-cask",
"homebrew-core": "homebrew-core",
"nix-darwin": "nix-darwin", "nix-darwin": "nix-darwin",
"nix-homebrew": "nix-homebrew",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
} }
+26 -1
View File
@@ -18,9 +18,20 @@
url = "github:oxalica/rust-overlay"; url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
homebrew-core = {
url = "github:homebrew/homebrew-core";
flake = false;
};
homebrew-cask = {
url = "github:homebrew/homebrew-cask";
flake = false;
};
}; };
outputs = { self, nixpkgs, nix-darwin, home-manager, rust-overlay }: outputs = { self, nixpkgs, nix-darwin, home-manager, rust-overlay, nix-homebrew, homebrew-core, homebrew-cask }:
let let
system = "aarch64-darwin"; system = "aarch64-darwin";
@@ -36,6 +47,20 @@
specialArgs = { inherit rust-overlay; }; specialArgs = { inherit rust-overlay; };
modules = [ modules = [
home-manager.darwinModules.home-manager home-manager.darwinModules.home-manager
nix-homebrew.darwinModules.nix-homebrew
{
nix-homebrew = {
enable = true;
enableRosetta = true;
user = "atridad";
autoMigrate = true;
taps = {
"homebrew/homebrew-core" = homebrew-core;
"homebrew/homebrew-cask" = homebrew-cask;
};
mutableTaps = false;
};
}
./modules/system.nix ./modules/system.nix
./modules/packages/cli.nix ./modules/packages/cli.nix
./modules/packages/languages.nix ./modules/packages/languages.nix
+3 -8
View File
@@ -5,30 +5,25 @@
enable = true; enable = true;
onActivation = { onActivation = {
autoUpdate = true; autoUpdate = false;
upgrade = true; upgrade = true;
cleanup = "zap"; cleanup = "zap";
}; };
taps = [ taps = [
"supersonic-app/supersonic" "homebrew/core"
"homebrew/cask"
]; ];
brews = [ brews = [
"gamdl"
"knock" "knock"
"snort" "snort"
]; ];
casks = [ casks = [
"android-platform-tools"
"flutter"
"ghostty" "ghostty"
"librewolf" "librewolf"
"ngrok"
"pearcleaner" "pearcleaner"
"zed"
"supersonic"
"calibre" "calibre"
]; ];
}; };
+2
View File
@@ -12,5 +12,7 @@
qrencode qrencode
sl sl
upx upx
android-tools
zed-editor
]; ];
} }
+1
View File
@@ -19,5 +19,6 @@ in
go go
nil nil
nixd nixd
flutter
]; ];
} }
+1
View File
@@ -4,5 +4,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ffmpeg ffmpeg
tectonic tectonic
supersonic
]; ];
} }
+1
View File
@@ -6,5 +6,6 @@
nikto nikto
john john
rustscan rustscan
ngrok
]; ];
} }