homebrew setup
This commit is contained in:
parent
346292ca5b
commit
4630408f49
3 changed files with 51 additions and 10 deletions
47
hosts/artemis/homebrew.nix
Normal file
47
hosts/artemis/homebrew.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
imports = {
|
||||
imports.nix-homebrew.darwinModules.nix-homebrew
|
||||
};
|
||||
nix-homebrew = {
|
||||
# Install Homebrew under the default prefix
|
||||
enable = true;
|
||||
|
||||
# Apple Silicon Only: Also install Homebrew under the default Intel prefix for Rosetta 2
|
||||
enableRosetta = true;
|
||||
|
||||
# User owning the Homebrew prefix
|
||||
user = "nyxerinys";
|
||||
|
||||
# Optional: Declarative tap management
|
||||
taps = {
|
||||
"homebrew/homebrew-core" = homebrew-core;
|
||||
"homebrew/homebrew-cask" = homebrew-cask;
|
||||
};
|
||||
|
||||
# Optional: Enable fully-declarative tap management
|
||||
#
|
||||
# With mutableTaps disabled, taps can no longer be added imperatively with `brew tap`.
|
||||
mutableTaps = false;
|
||||
|
||||
# Optional: Declarative Homebrew tap trust entries.
|
||||
#
|
||||
# Note: The trust entries are _not_ removed if you remove them from those lists!
|
||||
# Use the `brew untrust` command to remove a trust entry.
|
||||
trust = {
|
||||
formulae = [ ];
|
||||
casks = [ ];
|
||||
commands = [ ];
|
||||
taps = [ ];
|
||||
};
|
||||
};
|
||||
homebrew = {
|
||||
enable = true;
|
||||
onActivation.cleanup = "zap"; # Cleans packages not defined here
|
||||
|
||||
# Use Mac Casks instead of standard Nix packages for GUI apps
|
||||
casks = [
|
||||
"steam" # Native/Rosetta 2 macOS Steam Client
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue