Fix value of amdgpuBusId
This commit is contained in:
parent
2825a0087a
commit
c8d6a7b73c
3 changed files with 8 additions and 14 deletions
|
|
@ -30,9 +30,6 @@
|
||||||
ai.opencode.enable = true;
|
ai.opencode.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Monitor backlight control
|
|
||||||
programs.light.enable = true;
|
|
||||||
|
|
||||||
services.tlp.enable = true;
|
services.tlp.enable = true;
|
||||||
|
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
|
|
||||||
|
|
@ -71,12 +71,15 @@
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [
|
||||||
|
"amdgpu"
|
||||||
|
"nvidia"
|
||||||
|
];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
powerManagement.enable = false;
|
powerManagement.enable = false;
|
||||||
powerManagement.finegrained = false;
|
powerManagement.finegrained = true;
|
||||||
open = true;
|
open = true;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
@ -85,7 +88,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableOffloadCmd = true;
|
enableOffloadCmd = true;
|
||||||
};
|
};
|
||||||
amdgpuBusId = "PCI:6:0:0";
|
# nix run github:eclairevoyant/pcids
|
||||||
|
amdgpuBusId = "PCI:7:0:0";
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -18,14 +18,7 @@ in
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
(
|
(ncmpcpp.override { visualizerSupport = true; })
|
||||||
(ncmpcpp.override { visualizerSupport = true; })
|
|
||||||
# Duplicate fix until it makes its way in unstable
|
|
||||||
.overrideAttrs
|
|
||||||
(old: {
|
|
||||||
configureFlags = old.configureFlags ++ [ (lib.withFeatureAs true "boost" boost.dev) ];
|
|
||||||
})
|
|
||||||
)
|
|
||||||
mpc
|
mpc
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue