Games on mac
This commit is contained in:
parent
65d01c9fdc
commit
985465caf0
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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