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
|
kdePackages.kio-extras
|
||||||
sbctl
|
sbctl
|
||||||
sddm-astronaut-theme
|
sddm-astronaut-theme
|
||||||
|
asusctl
|
||||||
|
supergfxctl
|
||||||
|
(callPackage ../../drvs/nvidia-offload.nix {})
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.fuse.enable = true;
|
programs.fuse.enable = true;
|
||||||
|
|||||||
@@ -75,23 +75,18 @@
|
|||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
|
services.asusd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.supergfxd.enable = true;
|
||||||
|
|
||||||
services.xserver.videoDrivers = ["nvidia" "amdgpu"];
|
services.xserver.videoDrivers = ["nvidia" "amdgpu"];
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
open = true;
|
open = true;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
powerManagement.finegrained = true;
|
|
||||||
|
|
||||||
prime = {
|
|
||||||
offload = {
|
|
||||||
enable = true;
|
|
||||||
enableOffloadCmd = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
amdgpuBusId = "PCI:0:36:0";
|
|
||||||
nvidiaBusId = "PCI:0:1:0";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
|
|||||||
Reference in New Issue
Block a user