steam tinkering
This commit is contained in:
@@ -23,6 +23,7 @@ in {
|
||||
"docker"
|
||||
"libvirtd"
|
||||
"network"
|
||||
"gamemode"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
@@ -7,10 +7,8 @@
|
||||
pkgs,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
}: {
|
||||
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
@@ -21,17 +19,19 @@
|
||||
"usbhid"
|
||||
"usb_storage"
|
||||
"sd_mod"
|
||||
"amdgpu"
|
||||
];
|
||||
kernelModules = [ ];
|
||||
kernelModules = [];
|
||||
};
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
kernelModules = ["kvm-amd"];
|
||||
kernelPackages = pkgs.linuxPackages_zen;
|
||||
consoleLogLevel = 3;
|
||||
kernelParams = [
|
||||
"quiet"
|
||||
"splash"
|
||||
"amdgpu.ppfeaturemask=0xffffffff"
|
||||
];
|
||||
extraModulePackages = [ ];
|
||||
extraModulePackages = [];
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
@@ -50,7 +50,7 @@
|
||||
];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
swapDevices = [];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
|
||||
@@ -4,13 +4,12 @@
|
||||
outputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
}: {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
./adb.nix
|
||||
./zsh.nix
|
||||
./adampad-pkgs.nix
|
||||
./cnix-pkgs.nix
|
||||
./fonts.nix
|
||||
];
|
||||
home-manager = {
|
||||
@@ -20,7 +19,7 @@
|
||||
};
|
||||
};
|
||||
nixpkgs = {
|
||||
overlays = [ ];
|
||||
overlays = [];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
};
|
||||
@@ -54,6 +53,7 @@
|
||||
pkgs.xdg-utils
|
||||
pkgs.xdg-user-dirs
|
||||
pkgs.udiskie
|
||||
pkgs.wlroots
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,23 +1,52 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
package = pkgs.steam.override {
|
||||
extraPkgs =
|
||||
pkgs: with pkgs; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
xorg.libXScrnSaver
|
||||
libpng
|
||||
libpulseaudio
|
||||
libvorbis
|
||||
stdenv.cc.cc.lib
|
||||
libkrb5
|
||||
keyutils
|
||||
gamescope
|
||||
mangohud
|
||||
];
|
||||
{pkgs, ...}: {
|
||||
programs = {
|
||||
steam = {
|
||||
enable = true;
|
||||
extraCompatPackages = [
|
||||
pkgs.proton-ge-bin
|
||||
pkgs.vkd3d-proton
|
||||
];
|
||||
gamescopeSession.enable = true;
|
||||
package = pkgs.steam.override {
|
||||
extraPkgs = pkgs:
|
||||
with pkgs; [
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXinerama
|
||||
xorg.libXScrnSaver
|
||||
libpng
|
||||
libpulseaudio
|
||||
libvorbis
|
||||
stdenv.cc.cc.lib
|
||||
libkrb5
|
||||
keyutils
|
||||
mangohud
|
||||
SDL2
|
||||
SDL2_image
|
||||
];
|
||||
};
|
||||
};
|
||||
gamescope = {
|
||||
enable = true;
|
||||
capSysNice = true;
|
||||
};
|
||||
gamemode = {
|
||||
enable = true;
|
||||
settings = {
|
||||
general = {
|
||||
renice = 10;
|
||||
};
|
||||
gpu = {
|
||||
apply_gpu_optimisations = "accept-responsibility";
|
||||
gpu_device = 1;
|
||||
amd_performance_level = "high";
|
||||
};
|
||||
custom = {
|
||||
start = "${pkgs.libnotify}/bin/notify-send 'GameMode started'";
|
||||
end = "${pkgs.libnotify}/bin/notify-send 'GameMode ended'";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
environment.variables.AMD_VULKAN_ICD = "RADV";
|
||||
}
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}: let
|
||||
_nvtop = pkgs.nvtopPackages.amd;
|
||||
in {
|
||||
}: {
|
||||
zramSwap.enable = true;
|
||||
|
||||
security.rtkit.enable = true;
|
||||
@@ -21,12 +19,14 @@ in {
|
||||
};
|
||||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
_nvtop
|
||||
lact
|
||||
libva
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
vkd3d
|
||||
vkd3d-proton
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user