Compare commits
2 Commits
0677189e4f
...
d1522589f0
Author | SHA1 | Date | |
---|---|---|---|
|
d1522589f0 | ||
|
33a01619cf |
@ -3,9 +3,8 @@
|
||||
{
|
||||
imports = [
|
||||
../common/desktop.nix
|
||||
../common/steam.nix
|
||||
../common/minecraft.nix
|
||||
# ../common/nvidia.nix
|
||||
../common/nvidia.nix
|
||||
../common/gaming.nix
|
||||
];
|
||||
|
||||
boot.loader = {
|
||||
|
@ -37,6 +37,7 @@ in {
|
||||
xcape
|
||||
ffmpeg
|
||||
|
||||
ncmpcpp
|
||||
pciutils
|
||||
xscreensaver
|
||||
ncpamixer
|
||||
@ -44,7 +45,6 @@ in {
|
||||
dunst
|
||||
libnotify
|
||||
tig
|
||||
cmus
|
||||
neomutt
|
||||
mpv
|
||||
yt-dlp
|
||||
@ -124,6 +124,18 @@ in {
|
||||
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 = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
|
15
common/gaming.nix
Normal file
15
common/gaming.nix
Normal 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
|
||||
];
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
prismlauncher
|
||||
];
|
||||
}
|
@ -7,6 +7,10 @@
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
glxinfo
|
||||
];
|
||||
|
||||
# Tell Xorg to use the nvidia driver (also valid for Wayland)
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
@ -24,5 +28,15 @@
|
||||
|
||||
# Optionally, you may need to select the appropriate driver version for your specific GPU.
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
|
||||
prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
|
||||
intelBusId = "PCI:0:2:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user