mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
24 lines
405 B
Nix
24 lines
405 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; {
|
|
options.elss.steam.enable = mkEnableOption "Enable steam";
|
|
|
|
config = let
|
|
cfg = config.elss.steam;
|
|
in
|
|
mkIf cfg.enable {
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
extraCompatPackages = with pkgs; [
|
|
proton-ge-bin
|
|
];
|
|
gamescopeSession.enable = true;
|
|
};
|
|
};
|
|
}
|