dotfiles/user-modules/gaming/launchers/steam.nix

34 lines
631 B
Nix
Raw Normal View History

2024-07-19 12:00:55 +00:00
{
config,
lib,
pkgs,
...
}:
2024-07-18 11:48:49 +00:00
2024-07-19 12:00:55 +00:00
with lib;
{
2024-07-18 11:48:49 +00:00
options.modules.steam = {
enable = mkEnableOption "steam";
};
2025-01-26 12:16:06 +00:00
config = mkIf config.modules.steam.enable {
# Systemwide configuration
systemwide = {
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"
];
};
};
};
2025-01-23 23:28:22 +00:00
}