Games on mac

This commit is contained in:
Nathan McCarty 2023-07-22 03:18:45 -04:00
parent 65d01c9fdc
commit 985465caf0
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:3elIBybO7zXuCg+/os7OlO2fwfRPXmObQjcHXBf7Hfg
3 changed files with 12 additions and 0 deletions

View File

@ -10,6 +10,7 @@
programs = { programs = {
communications.enable = false; communications.enable = false;
creative.enable = false; creative.enable = false;
games.enable = false;
virtualization = false; virtualization = false;
}; };
}; };

View File

@ -14,6 +14,7 @@ in {
./settings.nix ./settings.nix
./media.nix ./media.nix
./creative.nix ./creative.nix
./games.nix
]; ];
options = with lib; options = with lib;
@ -37,6 +38,10 @@ in {
enable = mkDefaultOption "Communication applications" enable = mkDefaultOption "Communication applications"
config.nathan.config.isDesktop; config.nathan.config.isDesktop;
}; };
games = {
# Enable by default if we are on a linux desktop
enable = mkDefaultOption "games" config.nathan.config.isDesktop;
};
media = { media = {
# Enable by default if we are on a linux desktop # Enable by default if we are on a linux desktop
enable = mkDefaultOption "Media applications" enable = mkDefaultOption "Media applications"

6
modules/darwin/games.nix Normal file
View File

@ -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"; }]; };
}