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 = {
communications.enable = false;
creative.enable = false;
games.enable = false;
virtualization = false;
};
};

View File

@ -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"

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