Moved to even more declarative setup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user