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": {
"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": {
"inputs": {
"nixpkgs": [
@@ -20,6 +37,38 @@
"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": {
"inputs": {
"nixpkgs": [
@@ -40,6 +89,24 @@
"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": {
"locked": {
"lastModified": 1773628058,
@@ -59,7 +126,10 @@
"root": {
"inputs": {
"home-manager": "home-manager",
"homebrew-cask": "homebrew-cask",
"homebrew-core": "homebrew-core",
"nix-darwin": "nix-darwin",
"nix-homebrew": "nix-homebrew",
"nixpkgs": "nixpkgs",
"rust-overlay": "rust-overlay"
}
+26 -1
View File
@@ -18,9 +18,20 @@
url = "github:oxalica/rust-overlay";
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
system = "aarch64-darwin";
@@ -36,6 +47,20 @@
specialArgs = { inherit rust-overlay; };
modules = [
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/packages/cli.nix
./modules/packages/languages.nix
+3 -8
View File
@@ -5,30 +5,25 @@
enable = true;
onActivation = {
autoUpdate = true;
autoUpdate = false;
upgrade = true;
cleanup = "zap";
};
taps = [
"supersonic-app/supersonic"
"homebrew/core"
"homebrew/cask"
];
brews = [
"gamdl"
"knock"
"snort"
];
casks = [
"android-platform-tools"
"flutter"
"ghostty"
"librewolf"
"ngrok"
"pearcleaner"
"zed"
"supersonic"
"calibre"
];
};
+2
View File
@@ -12,5 +12,7 @@
qrencode
sl
upx
android-tools
zed-editor
];
}
+1
View File
@@ -19,5 +19,6 @@ in
go
nil
nixd
flutter
];
}
+1
View File
@@ -4,5 +4,6 @@
environment.systemPackages = with pkgs; [
ffmpeg
tectonic
supersonic
];
}
+1
View File
@@ -6,5 +6,6 @@
nikto
john
rustscan
ngrok
];
}