mirror of
https://github.com/Unkn0wnCat/dotfiles.git
synced 2025-05-03 11:55:52 +02:00
Add gaming-specific options
This commit is contained in:
parent
a10e43fcdf
commit
8f737a3622
3 changed files with 17 additions and 7 deletions
|
@ -12,6 +12,8 @@
|
||||||
../modules/firewall/syncthing.nix
|
../modules/firewall/syncthing.nix
|
||||||
../modules/firewall/wireguard.nix
|
../modules/firewall/wireguard.nix
|
||||||
../modules/yubikey.nix
|
../modules/yubikey.nix
|
||||||
|
../modules/gaming/steam.nix
|
||||||
|
../modules/gaming/helpers.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
@ -61,15 +63,8 @@
|
||||||
|
|
||||||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
|
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
|
|
||||||
programs.steam = {
|
|
||||||
enable = true;
|
|
||||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
|
||||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "kevin-pc";
|
networking.hostName = "kevin-pc";
|
||||||
networking.hostId = "5dbf8235";
|
networking.hostId = "5dbf8235";
|
||||||
|
|
||||||
system.stateVersion = "23.05"; # No touchy. Locks defaults.
|
system.stateVersion = "23.05"; # No touchy. Locks defaults.
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
7
nixos/modules/gaming/helpers.nix
Normal file
7
nixos/modules/gaming/helpers.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{pkgs, ...}:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
mangohud
|
||||||
|
];
|
||||||
|
programs.gamemode.enable = true;
|
||||||
|
}
|
8
nixos/modules/gaming/steam.nix
Normal file
8
nixos/modules/gaming/steam.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{pkgs, ...}:
|
||||||
|
{
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||||
|
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue