diff --git a/hosts/artemis/default.nix b/hosts/artemis/default.nix index 19b5480..452d4b8 100644 --- a/hosts/artemis/default.nix +++ b/hosts/artemis/default.nix @@ -1,21 +1,14 @@ { pkgs, lib, inputs, ... }: { + imports = [ + ./homebrew.nix + ]; environment.systemPackages = with pkgs; [ vscodium 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; ids.gids.nixbld = 350; programs.fish.enable = true; diff --git a/hosts/artemis/homebrew.nix b/hosts/artemis/homebrew.nix new file mode 100644 index 0000000..a016c57 --- /dev/null +++ b/hosts/artemis/homebrew.nix @@ -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 + ]; + }; +} \ No newline at end of file diff --git a/modules/home/nyxerinys/default.nix b/modules/home/nyxerinys/default.nix index f04c7f1..6845ce4 100644 --- a/modules/home/nyxerinys/default.nix +++ b/modules/home/nyxerinys/default.nix @@ -12,6 +12,7 @@ ); home.packages = with pkgs; [ discord + prismlauncher ];