mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-07 21:16:33 +01:00
22 lines
443 B
Nix
22 lines
443 B
Nix
|
{ options, config, pkgs, lib, ... }:
|
||
|
|
||
|
with lib;
|
||
|
#with lib.internal;
|
||
|
let cfg = config.custom.programs.steam;
|
||
|
in
|
||
|
{
|
||
|
options.custom.programs.steam = with types; {
|
||
|
enable = mkBoolOpt false "Whether or not to enable Steam.";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
hardware.steam-hardware.enable = true;
|
||
|
|
||
|
programs.steam = {
|
||
|
enable = true;
|
||
|
remotePlay.openFirewall = true;
|
||
|
dedicatedServer.openFirewall = true;
|
||
|
};
|
||
|
};
|
||
|
}
|