Add nvidia drivers and fix interactive.fish

This commit is contained in:
2026-07-07 18:24:56 +01:00
parent 903661935e
commit c7a28de886
3 changed files with 36 additions and 3 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
if test "$KITTY_STR" -eq 1
fastfetch
if test "$KITTY_STR" = "1"
fastfetch
end
+1 -1
View File
@@ -31,7 +31,7 @@
services.xserver = {
enable = true;
displayManager.startx.enable = true;
videoDrivers = [ "modesetting" ];
videoDrivers = [ "modesetting" "nvidia" ];
xkb = {
layout = "us";
variant = "";
+33
View File
@@ -0,0 +1,33 @@
{ config, ... }:
{
nix.settings = {
substituters = [ "https://cache.nixos-cuda.org" ];
trusted-public-keys = [
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
];
};
hardware.graphics = {
enable = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
intelBusId = "PCI:0@0:2:0";
nvidiaBusId = "PCI:1@0:0:0";
};
};
}