diff --git a/Makefile b/Makefile index 399dfbc..1dd43d3 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ HOSTS = nixbook nixpad tuxcomp +boot: + nixos-rebuild boot --flake . --sudo --ask-sudo-password + switch: nixos-rebuild switch --flake . --sudo --ask-sudo-password diff --git a/hosts/tuxcomp/nvidia.nix b/hosts/tuxcomp/nvidia.nix index 1f2fce0..205467d 100644 --- a/hosts/tuxcomp/nvidia.nix +++ b/hosts/tuxcomp/nvidia.nix @@ -2,12 +2,16 @@ { services.xserver.videoDrivers = lib.mkForce [ - "nvidia" "amdgpu" + "nvidia" ]; hardware.nvidia.prime = { - reverseSync.enable = true; + offload = { + enable = true; + enableOffloadCmd = true; + }; + amdgpuBusId = "PCI:6@0:0:0"; nvidiaBusId = "PCI:1@0:0:0"; };