dotfiles/user-modules/systemwide/steam.nix

30 lines
556 B
Nix
Raw Normal View History

2024-07-19 12:00:55 +00:00
{
lib,
config,
pkgs,
2024-07-19 12:00:55 +00:00
...
}:
2024-07-18 11:48:49 +00:00
with lib;
let
enabled = any (user: user.modules.steam.enable) (attrValues config.home-manager.users);
2024-07-19 12:00:55 +00:00
in
{
2024-12-01 23:54:51 +00:00
config = mkIf enabled {
modules.unfree.allowedPackages = [
"steam"
"steam-original"
"steam-unwrapped"
];
programs.steam.enable = true;
# Make steam create desktop entries in a subfolder
programs.steam.package = pkgs.steam.override {
extraBwrapArgs = [
"--bind $HOME/.local/share/applications/Steam $HOME/.local/share/applications"
];
};
2024-12-01 23:54:51 +00:00
};
2024-07-19 12:00:55 +00:00
}