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
+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