Add player.nix
This commit is contained in:
commit
f733d278f9
47
player.nix
Normal file
47
player.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Gaming and streaming applications
|
||||
environment.systemPackages = with pkgs; [
|
||||
vlc # VLC media player
|
||||
dolphin-emu # Dolphin GameCube/Wii emulator
|
||||
obs-studio # OBS Studio for streaming/recording
|
||||
git # Git version control
|
||||
];
|
||||
|
||||
# Steam configuration
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true; # Open ports for Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Open ports for Source Dedicated Server
|
||||
localNetworkGameTransfers.openFirewall = true; # Open ports for local network game transfers
|
||||
};
|
||||
|
||||
# Enable GameMode for better gaming performance (optional but recommended)
|
||||
programs.gamemode.enable = true;
|
||||
|
||||
# Bluetooth support for controllers (Wii remotes, etc.)
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true; # Automatically enable Bluetooth on boot
|
||||
};
|
||||
|
||||
# Blueman for Bluetooth management GUI
|
||||
services.blueman.enable = true;
|
||||
|
||||
# SSH service
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = true; # Set to false if using key-only auth
|
||||
PermitRootLogin = "no"; # Disable root login for security
|
||||
};
|
||||
};
|
||||
|
||||
# Hardware acceleration for video playback and encoding
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true; # Required for 32-bit games on Steam
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue