homebrew setup
This commit is contained in:
parent
346292ca5b
commit
4630408f49
3 changed files with 51 additions and 10 deletions
|
|
@ -1,21 +1,14 @@
|
||||||
{ pkgs, lib, inputs, ... }:
|
{ pkgs, lib, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./homebrew.nix
|
||||||
|
];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
vscodium
|
vscodium
|
||||||
git
|
git
|
||||||
];
|
];
|
||||||
|
|
||||||
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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
security.pam.services.sudo_local.touchIdAuth = true;
|
security.pam.services.sudo_local.touchIdAuth = true;
|
||||||
ids.gids.nixbld = 350;
|
ids.gids.nixbld = 350;
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
|
||||||
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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
);
|
);
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
discord
|
discord
|
||||||
|
prismlauncher
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue