diff options
author | Alan Pearce | 2019-10-08 21:44:57 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-08 21:44:57 +0200 |
commit | 0a50d682ec85bf023bebd68a3ca388001f0c0677 (patch) | |
tree | 3f725c5a36633ec5b59df37f156a03ee2a971656 /system/settings/gaming.nix | |
parent | 40fd4964068d0b7628b6f699dab4aec200eadb0a (diff) | |
download | nixfiles-0a50d682ec85bf023bebd68a3ca388001f0c0677.tar.lz nixfiles-0a50d682ec85bf023bebd68a3ca388001f0c0677.tar.zst nixfiles-0a50d682ec85bf023bebd68a3ca388001f0c0677.zip |
mv modules settings
Diffstat (limited to 'system/settings/gaming.nix')
-rw-r--r-- | system/settings/gaming.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/system/settings/gaming.nix b/system/settings/gaming.nix new file mode 100644 index 00000000..0dbc5b12 --- /dev/null +++ b/system/settings/gaming.nix @@ -0,0 +1,27 @@ +{ config, pkgs, ... }: + +{ + hardware.steam-hardware.enable = true; + hardware.opengl.driSupport32Bit = true; + hardware.pulseaudio.support32Bit = true; + + systemd = { + extraConfig = '' + DefaultLimitNOFILE=524288 + ''; + user.extraConfig = '' + DefaultLimitNOFILE=524288 + ''; + }; + + networking.firewall = { + allowedUDPPorts = [ + 27031 + 27036 + ]; + allowedTCPPorts = [ + 27036 + 27037 + ]; + }; +} |