From 985465caf0b3e0b98ba9215139dfdda152363b4b Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Sat, 22 Jul 2023 03:18:45 -0400 Subject: [PATCH] Games on mac --- machines/TC-4000579/configuration.nix | 1 + modules/darwin/default.nix | 5 +++++ modules/darwin/games.nix | 6 ++++++ 3 files changed, 12 insertions(+) create mode 100644 modules/darwin/games.nix diff --git a/machines/TC-4000579/configuration.nix b/machines/TC-4000579/configuration.nix index 61c24fa..280c55f 100644 --- a/machines/TC-4000579/configuration.nix +++ b/machines/TC-4000579/configuration.nix @@ -10,6 +10,7 @@ programs = { communications.enable = false; creative.enable = false; + games.enable = false; virtualization = false; }; }; diff --git a/modules/darwin/default.nix b/modules/darwin/default.nix index 8ec946f..595a2e3 100644 --- a/modules/darwin/default.nix +++ b/modules/darwin/default.nix @@ -14,6 +14,7 @@ in { ./settings.nix ./media.nix ./creative.nix + ./games.nix ]; options = with lib; @@ -37,6 +38,10 @@ in { enable = mkDefaultOption "Communication applications" config.nathan.config.isDesktop; }; + games = { + # Enable by default if we are on a linux desktop + enable = mkDefaultOption "games" config.nathan.config.isDesktop; + }; media = { # Enable by default if we are on a linux desktop enable = mkDefaultOption "Media applications" diff --git a/modules/darwin/games.nix b/modules/darwin/games.nix new file mode 100644 index 0000000..e589dd0 --- /dev/null +++ b/modules/darwin/games.nix @@ -0,0 +1,6 @@ +{ config, lib, pkgs, ... }: +let np = config.nathan.programs; +in with lib; { + # Install media applications + config = mkIf np.games.enable { homebrew.casks = [{ name = "steam"; }]; }; +}