Compare commits

..

2 Commits

Author SHA1 Message Date
randomuser d1522589f0 stuff 2023-08-03 22:10:01 -05:00
randomuser 33a01619cf add the nvidia and steam configurations for mlg 2023-08-03 14:32:53 -05:00
5 changed files with 44 additions and 10 deletions

View File

@ -3,9 +3,8 @@
{ {
imports = [ imports = [
../common/desktop.nix ../common/desktop.nix
../common/steam.nix ../common/nvidia.nix
../common/minecraft.nix ../common/gaming.nix
# ../common/nvidia.nix
]; ];
boot.loader = { boot.loader = {

View File

@ -37,6 +37,7 @@ in {
xcape xcape
ffmpeg ffmpeg
ncmpcpp
pciutils pciutils
xscreensaver xscreensaver
ncpamixer ncpamixer
@ -44,7 +45,6 @@ in {
dunst dunst
libnotify libnotify
tig tig
cmus
neomutt neomutt
mpv mpv
yt-dlp yt-dlp
@ -124,6 +124,18 @@ in {
nativeMessagingHosts.tridactyl = true; nativeMessagingHosts.tridactyl = true;
}; };
services.mpd = {
enable = true;
musicDirectory = "/home/usr/music";
extraConfig = ''
audio_output {
type "pulse"
name "pulseaudio"
server "127.0.0.1"
}
'';
};
users.users.usr = { users.users.usr = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; extraGroups = [ "wheel" ];

15
common/gaming.nix Normal file
View File

@ -0,0 +1,15 @@
{ config, lib, 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
};
environment.systemPackages = with pkgs; [
steam-run
prismlauncher
xonotic
minetest
];
}

View File

@ -1,6 +0,0 @@
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
prismlauncher
];
}

View File

@ -7,6 +7,10 @@
driSupport32Bit = true; driSupport32Bit = true;
}; };
environment.systemPackages = with pkgs; [
glxinfo
];
# Tell Xorg to use the nvidia driver (also valid for Wayland) # Tell Xorg to use the nvidia driver (also valid for Wayland)
services.xserver.videoDrivers = ["nvidia"]; services.xserver.videoDrivers = ["nvidia"];
@ -24,5 +28,15 @@
# Optionally, you may need to select the appropriate driver version for your specific GPU. # Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.stable;
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
}; };
} }