Compare commits
2 Commits
0677189e4f
...
d1522589f0
Author | SHA1 | Date | |
---|---|---|---|
|
d1522589f0 | ||
|
33a01619cf |
@ -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 = {
|
||||||
|
@ -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
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;
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user