Trying to use brew-nix - still to much broken

This commit is contained in:
Olaf
2026-07-30 16:04:47 +02:00
parent 45bf546b85
commit 9d42bfdf15
4 changed files with 132 additions and 159 deletions
+16 -36
View File
@@ -53,6 +53,14 @@
llm-agents = {
url = "github:numtide/llm-agents.nix";
};
brew-api = {
url = "github:BatteredBunny/brew-api";
flake = false;
};
brew-nix = {
url = "github:BatteredBunny/brew-nix";
inputs.brew-api.follows = "brew-api";
};
# mac-app-util doesn't work with OCLP installed on X86
# mac-app-util = {
@@ -75,6 +83,8 @@
nix-vscode-extensions,
catppuccin,
llm-agents,
brew-api,
brew-nix,
...
}@inputs:
let
@@ -105,7 +115,7 @@
export EDITOR=vim
'';
buildInputs = with pkgs; [
rnix-lsp
bash
];
};
};
@@ -134,9 +144,8 @@
};
in
{
devShells = forAllSystems devShell;
apps =
nixpkgs.lib.genAttrs linuxSystems mkLinuxApps // nixpkgs.lib.genAttrs darwinSystems mkDarwinApps;
devShells = nixpkgs.lib.genAttrs darwinSystems devShell;
apps = nixpkgs.lib.genAttrs darwinSystems mkDarwinApps;
darwinConfigurations = nixpkgs.lib.genAttrs darwinSystems (
system:
@@ -144,22 +153,12 @@
inherit system;
specialArgs = inputs;
modules = [
brew-nix.darwinModules.default
# sops-nix.nixosModules.sops
home-manager.darwinModules.home-manager
nix-homebrew.darwinModules.nix-homebrew
# mac-app-util.darwinModules.default
{
nix-homebrew = {
inherit user;
enable = true;
taps = {
"homebrew/homebrew-core" = homebrew-core;
"homebrew/homebrew-cask" = homebrew-cask;
"homebrew/homebrew-bundle" = homebrew-bundle;
};
mutableTaps = false;
autoMigrate = true;
};
brew-nix.enable = true;
home-manager.sharedModules = [
# mac-app-util.homeManagerModules.default
catppuccin.homeModules.catppuccin
@@ -171,25 +170,6 @@
}
);
nixosConfigurations = nixpkgs.lib.genAttrs linuxSystems (
system:
nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = inputs;
modules = [
sops-nix.nixosModules.sops
disko.nixosModules.disko
home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users.${user} = import ./modules/nixos/home-manager.nix;
};
}
./hosts/nixos
];
}
);
nixosConfigurations = { };
};
}