os/modules/gaming/default.nix

32 lines
591 B
Nix
Raw Normal View History

2022-11-20 22:28:23 +00:00
{
lib,
config,
pkgs,
...
}:
with lib; let
2021-05-30 19:10:28 +00:00
psCfg = config.pub-solar;
cfg = config.pub-solar.gaming;
2022-11-20 22:28:23 +00:00
in {
2021-05-30 19:10:28 +00:00
options.pub-solar.gaming = {
enable = mkEnableOption "Life in shooters";
};
config = mkIf cfg.enable {
programs.steam.enable = true;
nixpkgs.config.packageOverrides = pkgs: {
2022-11-20 22:28:23 +00:00
steam = pkgs.steam.override {};
2021-05-30 19:10:28 +00:00
};
2022-11-20 22:28:23 +00:00
home-manager = with pkgs;
pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
home.packages = [
playonlinux
godot
obs-studio
obs-studio-plugins.wlrobs
];
};
2021-05-30 19:10:28 +00:00
};
}