feat(kachu-laptop): ✨ moved to asus-linux graphics control
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# nvidia-offload.nix
|
||||
{ writeShellScriptBin }:
|
||||
|
||||
writeShellScriptBin "nvidia-offload" ''
|
||||
export __NV_PRIME_RENDER_OFFLOAD=1
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||
exec "$@"
|
||||
''
|
||||
@@ -161,6 +161,9 @@
|
||||
kdePackages.kio-extras
|
||||
sbctl
|
||||
sddm-astronaut-theme
|
||||
asusctl
|
||||
supergfxctl
|
||||
(callPackage ../../drvs/nvidia-offload.nix {})
|
||||
];
|
||||
|
||||
programs.fuse.enable = true;
|
||||
|
||||
@@ -75,23 +75,18 @@
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
services.asusd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.supergfxd.enable = true;
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia" "amdgpu"];
|
||||
hardware.nvidia = {
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
powerManagement.enable = true;
|
||||
powerManagement.finegrained = true;
|
||||
|
||||
prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
|
||||
amdgpuBusId = "PCI:0:36:0";
|
||||
nvidiaBusId = "PCI:0:1:0";
|
||||
};
|
||||
};
|
||||
|
||||
hardware.graphics = {
|
||||
|
||||
Reference in New Issue
Block a user