profiles/gaming: add games submodule

This commit is contained in:
Gabriel Arazas 2023-06-08 20:00:19 +08:00
parent ab8ab4921c
commit 59bfa0e9d4
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -9,6 +9,7 @@ in
enable = lib.mkEnableOption "foodogsquared's gaming setup";
emulators.enable = lib.mkEnableOption "installation of individual game emulators";
retro-computing.enable = lib.mkEnableOption "installation of retro computer systems";
games.enable = lib.mkEnableOption "installation of certain FOSS games for funsies";
};
# Just don't ask where you can sail getting the games. :)
@ -44,6 +45,24 @@ in
];
})
# Despite the module being for gaming setup, no individual games are
# installed. Also, all of the installed games are FOSS so far. At least,
# Stallman-senpai would be proud.
(lib.mkIf cfg.games.enable {
environment.systemPackages = with pkgs; [
cataclysm-dda
dwarf-fortress
endless-sky
mindustry
minetest
openra
superTuxKart
the-powder-toy
wesnoth
zeroad
];
})
# Old computer systems for old people.
(lib.mkIf cfg.retro-computing.enable {
environment.systemPackages = with pkgs; [