mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2024-12-29 17:36:33 +01:00
29 lines
553 B
Nix
29 lines
553 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.jopejoe1.steam;
|
|
in
|
|
{
|
|
options.jopejoe1.steam = {
|
|
enable = lib.mkEnableOption "Enable Steam";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
programs.steam = {
|
|
enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
gamescopeSession.enable = true;
|
|
extest.enable = true;
|
|
extraCompatPackages = with pkgs; [ proton-ge-bin ];
|
|
};
|
|
};
|
|
}
|