diff --git a/hosts/nxs/configuration.nix b/hosts/nxs/configuration.nix index e5b55ed..4c2e8cb 100644 --- a/hosts/nxs/configuration.nix +++ b/hosts/nxs/configuration.nix @@ -87,9 +87,9 @@ windowManager.i3.enable = true; - videoDrivers = [ "nvidia" ]; + videoDrivers = [ "amdgpu" "nvidia" ]; deviceSection = '' - BusID "PCI:1:0:0" # lspci | grep VGA → find your busid + BusID "PCI:1:0:0" Driver "nvidia" ''; }; @@ -245,9 +245,17 @@ package = config.boot.kernelPackages.nvidiaPackages.stable; # SSH config: }; + hardware.nvidia.forceFullCompositionPipeline = true; systemd.services = { systemd-suspend.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; systemd-hibernate.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; # if u care }; + hardware.nvidia.prime = { + offload.enable = true; + amdgpuBusId = "PCI:7:0:0"; + nvidiaBusId = "PCI:1:0:0"; + #amdgpuBusId = "PCI:54:0:0"; # If you have an AMD iGPU + }; + } diff --git a/hosts/nxs/home.nix b/hosts/nxs/home.nix index 68886d1..836a863 100644 --- a/hosts/nxs/home.nix +++ b/hosts/nxs/home.nix @@ -41,6 +41,7 @@ home.packages = with pkgs; [ + ssh-to-age pinentry-curses cryptsetup grc @@ -87,6 +88,8 @@ rofi pipewire lshw + age + notepad-next ]; programs.direnv = {