updating kaladin to use latest nvidia driver
This commit is contained in:
parent
4b05726aa8
commit
37bb6ef1e2
3 changed files with 74 additions and 60 deletions
43
README.org
43
README.org
|
@ -792,10 +792,10 @@ Kaladin is my desktop machine. A powerhouse for the most part with a recent i7 a
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
<<experimental-features>>
|
||||
|
||||
|
@ -832,7 +832,7 @@ imports =
|
|||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
# Set default shell to be dash for speed
|
||||
environment.binsh = "${pkgs.dash}/bin/dash";
|
||||
# environment.binsh = "${pkgs.dash}/bin/dash";
|
||||
|
||||
# NVIDIA
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
@ -845,11 +845,18 @@ imports =
|
|||
];
|
||||
};
|
||||
nvidia = {
|
||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.xserver.screenSection = ''
|
||||
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
|
||||
Option "AllowIndirectGLXProtocol" "off"
|
||||
Option "TripleBuffer" "on"
|
||||
'';
|
||||
|
||||
<<desktop>>
|
||||
|
||||
# Configure keymap in X11
|
||||
|
@ -912,25 +919,25 @@ imports =
|
|||
<<base-packages>>
|
||||
<<general-packages>>
|
||||
blender
|
||||
neofetch
|
||||
# ethminer
|
||||
lutris
|
||||
protonup
|
||||
nvtop
|
||||
neofetch
|
||||
# ethminer
|
||||
lutris
|
||||
protonup
|
||||
nvtop
|
||||
# Dev tools
|
||||
<<dev-tools>>
|
||||
<<lightlyshaders>>
|
||||
];
|
||||
|
||||
nixpkgs.overlays = [
|
||||
# nixpkgs.overlays = [
|
||||
|
||||
(import (builtins.fetchTarball {
|
||||
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
||||
sha256 = "1v1n30a2ai5mnlkrkwv4mfczd3601sqxxlawadxariblfvg7qz4j";
|
||||
}))
|
||||
# (import (builtins.fetchTarball {
|
||||
# url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
||||
# sha256 = "1v1n30a2ai5mnlkrkwv4mfczd3601sqxxlawadxariblfvg7qz4j";
|
||||
# }))
|
||||
|
||||
<<overlays>>
|
||||
];
|
||||
# <<overlays>>
|
||||
# ];
|
||||
|
||||
<<emacs>>
|
||||
<<samba>>
|
||||
|
@ -993,7 +1000,7 @@ And here is it's hardware config.
|
|||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
||||
boot.extraModulePackages = [ config.boot.kernelPackages.nvidiaPackages.latest ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue