From c8d6a7b73c47fbfe3a83c4d58cc4d3dd067d3e46 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Thu, 19 Mar 2026 12:23:10 +0100 Subject: [PATCH] Fix value of amdgpuBusId --- hosts/stellaris/default.nix | 3 --- hosts/stellaris/hardware-configuration.nix | 10 +++++++--- modules/media/ncmpcpp/ncmpcpp.nix | 9 +-------- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/hosts/stellaris/default.nix b/hosts/stellaris/default.nix index 4a9cb4d..19a0279 100644 --- a/hosts/stellaris/default.nix +++ b/hosts/stellaris/default.nix @@ -30,9 +30,6 @@ ai.opencode.enable = true; }; - # Monitor backlight control - programs.light.enable = true; - services.tlp.enable = true; hardware.cpu.amd.updateMicrocode = true; diff --git a/hosts/stellaris/hardware-configuration.nix b/hosts/stellaris/hardware-configuration.nix index 9ea6bf9..6acd67d 100644 --- a/hosts/stellaris/hardware-configuration.nix +++ b/hosts/stellaris/hardware-configuration.nix @@ -71,12 +71,15 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = true; - services.xserver.videoDrivers = [ "nvidia" ]; + services.xserver.videoDrivers = [ + "amdgpu" + "nvidia" + ]; hardware.nvidia = { modesetting.enable = true; powerManagement.enable = false; - powerManagement.finegrained = false; + powerManagement.finegrained = true; open = true; nvidiaSettings = true; package = config.boot.kernelPackages.nvidiaPackages.stable; @@ -85,7 +88,8 @@ enable = true; enableOffloadCmd = true; }; - amdgpuBusId = "PCI:6:0:0"; + # nix run github:eclairevoyant/pcids + amdgpuBusId = "PCI:7:0:0"; nvidiaBusId = "PCI:1:0:0"; }; }; diff --git a/modules/media/ncmpcpp/ncmpcpp.nix b/modules/media/ncmpcpp/ncmpcpp.nix index e23745b..745b6d9 100644 --- a/modules/media/ncmpcpp/ncmpcpp.nix +++ b/modules/media/ncmpcpp/ncmpcpp.nix @@ -18,14 +18,7 @@ in home = { packages = with pkgs; [ - ( - (ncmpcpp.override { visualizerSupport = true; }) - # Duplicate fix until it makes its way in unstable - .overrideAttrs - (old: { - configureFlags = old.configureFlags ++ [ (lib.withFeatureAs true "boost" boost.dev) ]; - }) - ) + (ncmpcpp.override { visualizerSupport = true; }) mpc ];