21 lines
381 B
Nix
21 lines
381 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.local.programs.gaming;
|
|
in {
|
|
options.local.programs.gaming = {
|
|
enable = mkEnableOption "gaming apps";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
ckan # ksp mod manager
|
|
lutris # game launcher
|
|
openrct2 # rollercoaster tycoon
|
|
prismlauncher # minecraft
|
|
];
|
|
};
|
|
}
|