Games on mac
This commit is contained in:
parent
65d01c9fdc
commit
985465caf0
|
@ -10,6 +10,7 @@
|
|||
programs = {
|
||||
communications.enable = false;
|
||||
creative.enable = false;
|
||||
games.enable = false;
|
||||
virtualization = false;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"; }]; };
|
||||
}
|
Loading…
Reference in New Issue