Files
nixos-dotfiles/modules/desktop/gaming/steam.nix
2025-12-20 23:05:28 +08:00

28 lines
413 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.desktop.gaming.steam;
in
{
options.my.desktop.gaming.steam = {
enable = lib.mkEnableOption "steam";
};
config = lib.mkIf cfg.enable {
programs.steam = {
enable = true;
package = pkgs.steam;
extraPackages = with pkgs; [
gamescope
];
};
my.persist.homeDirs = [
".local/share/Steam"
];
};
}