Trying to use brew-nix - still to much broken
This commit is contained in:
@@ -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 = { };
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user