diff --git a/nixos/features/steam.nix b/nixos/features/steam.nix index e82a2c9..417069f 100644 --- a/nixos/features/steam.nix +++ b/nixos/features/steam.nix @@ -6,7 +6,7 @@ }; environment.systemPackages = with pkgs; [ - steamcmd - steam-tui + # steamcmd + # steam-tui ]; } diff --git a/nixos/hosts/unicorn/default.nix b/nixos/hosts/unicorn/default.nix index 6baaacf..7b9d135 100644 --- a/nixos/hosts/unicorn/default.nix +++ b/nixos/hosts/unicorn/default.nix @@ -46,6 +46,16 @@ nvidiaBusId = "PCI:1:0:0"; }; + # always enable prime (fixes vulkan precaching -- it will compile them on AMD, trust aki, deal with it.) + programs.steam.package = pkgs.steam.override { + extraEnv = { + __NV_PRIME_RENDER_OFFLOAD="1"; + __NV_PRIME_RENDER_OFFLOAD_PROVIDER="NVIDIA-G0"; + __GLX_VENDOR_LIBRARY_NAME="nvidia"; + __VK_LAYER_NV_optimus="NVIDIA_only"; + }; + }; + # √(2560² + 1600²) px / 16 in ≃ 189 dpi services.xserver.dpi = 189; } diff --git a/nixos/hosts/unicorn/rgb.nix b/nixos/hosts/unicorn/rgb.nix index 4a93c6d..52fa539 100644 --- a/nixos/hosts/unicorn/rgb.nix +++ b/nixos/hosts/unicorn/rgb.nix @@ -7,6 +7,6 @@ in { ExecStart = "${pkg}/bin/legion-kb-rgb set --effect Static --colors 255,0,0,39,5,5,26,9,0,192,95,0"; Type = "oneshot"; }; - after = [ "multi-user.target" ]; + wantedBy = [ "multi-user.target" ]; }; }