Setup nvidia drivers on stellaris
This commit is contained in:
parent
fafc1334b9
commit
0ec400e235
5 changed files with 16 additions and 5 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
"https://devenv.cachix.org"
|
"https://devenv.cachix.org"
|
||||||
"ssh://nix-ssh@hel1.banditlair.com"
|
# "ssh://nix-ssh@hel1.banditlair.com"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@
|
||||||
"steam-unwrapped"
|
"steam-unwrapped"
|
||||||
"keymapp"
|
"keymapp"
|
||||||
"mongodb-compass"
|
"mongodb-compass"
|
||||||
|
"nvidia-x11"
|
||||||
|
"nvidia-settings"
|
||||||
];
|
];
|
||||||
overlays = extraOverlays ++ (pkgs.lib.attrValues self.overlays);
|
overlays = extraOverlays ++ (pkgs.lib.attrValues self.overlays);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,9 @@
|
||||||
services.network-manager-applet.enable = true;
|
services.network-manager-applet.enable = true;
|
||||||
services.blueman-applet.enable = true;
|
services.blueman-applet.enable = true;
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = [
|
env = [
|
||||||
"eDP-1, 1920x1080, 0x720, 1.5"
|
"LIBVA_DRIVER_NAME,nvidia"
|
||||||
"DP-1, 1920x1080, 0x0, 1.5"
|
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
||||||
];
|
];
|
||||||
|
|
||||||
workspace = [
|
workspace = [
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
|
|
@ -79,5 +80,13 @@
|
||||||
open = true;
|
open = true;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
prime = {
|
||||||
|
offload = {
|
||||||
|
enable = true;
|
||||||
|
enableOffloadCmd = true;
|
||||||
|
};
|
||||||
|
amdgpuBusId = "PCI:6:0:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ in
|
||||||
activation = {
|
activation = {
|
||||||
installDoomEmacs = ''
|
installDoomEmacs = ''
|
||||||
if [ ! -d "${config.home-manager.users.${config.user.name}.xdg.configHome}/emacs" ]; then
|
if [ ! -d "${config.home-manager.users.${config.user.name}.xdg.configHome}/emacs" ]; then
|
||||||
git clone --depth=1 --single-branch https://github.com/doomemacs/doomemacs "${
|
${pkgs.git}/bin/git clone --depth=1 --single-branch https://github.com/doomemacs/doomemacs "${
|
||||||
config.home-manager.users.${config.user.name}.xdg.configHome
|
config.home-manager.users.${config.user.name}.xdg.configHome
|
||||||
}/emacs"
|
}/emacs"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue