updating kaladin to use latest nvidia driver
This commit is contained in:
parent
4b05726aa8
commit
37bb6ef1e2
25
README.org
25
README.org
|
@ -832,7 +832,7 @@ imports =
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
# Set default shell to be dash for speed
|
# Set default shell to be dash for speed
|
||||||
environment.binsh = "${pkgs.dash}/bin/dash";
|
# environment.binsh = "${pkgs.dash}/bin/dash";
|
||||||
|
|
||||||
# NVIDIA
|
# NVIDIA
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
@ -845,11 +845,18 @@ imports =
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nvidia = {
|
nvidia = {
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.xserver.screenSection = ''
|
||||||
|
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
|
||||||
|
Option "AllowIndirectGLXProtocol" "off"
|
||||||
|
Option "TripleBuffer" "on"
|
||||||
|
'';
|
||||||
|
|
||||||
<<desktop>>
|
<<desktop>>
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
|
@ -922,15 +929,15 @@ imports =
|
||||||
<<lightlyshaders>>
|
<<lightlyshaders>>
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
# nixpkgs.overlays = [
|
||||||
|
|
||||||
(import (builtins.fetchTarball {
|
# (import (builtins.fetchTarball {
|
||||||
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
# url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
||||||
sha256 = "1v1n30a2ai5mnlkrkwv4mfczd3601sqxxlawadxariblfvg7qz4j";
|
# sha256 = "1v1n30a2ai5mnlkrkwv4mfczd3601sqxxlawadxariblfvg7qz4j";
|
||||||
}))
|
# }))
|
||||||
|
|
||||||
<<overlays>>
|
# <<overlays>>
|
||||||
];
|
# ];
|
||||||
|
|
||||||
<<emacs>>
|
<<emacs>>
|
||||||
<<samba>>
|
<<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.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
boot.extraModulePackages = [ config.boot.kernelPackages.nvidiaPackages.latest ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
|
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
|
||||||
|
|
|
@ -59,7 +59,7 @@ imports =
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
# Set default shell to be dash for speed
|
# Set default shell to be dash for speed
|
||||||
environment.binsh = "${pkgs.dash}/bin/dash";
|
# environment.binsh = "${pkgs.dash}/bin/dash";
|
||||||
|
|
||||||
# NVIDIA
|
# NVIDIA
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
@ -72,11 +72,18 @@ imports =
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
nvidia = {
|
nvidia = {
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.xserver.screenSection = ''
|
||||||
|
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
|
||||||
|
Option "AllowIndirectGLXProtocol" "off"
|
||||||
|
Option "TripleBuffer" "on"
|
||||||
|
'';
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "ntfs" ];
|
boot.supportedFilesystems = [ "ntfs" ];
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -366,39 +373,39 @@ imports =
|
||||||
(with import <nixpkgs> {}; libsForQt5.callPackage ../../LightlyShaders {})
|
(with import <nixpkgs> {}; libsForQt5.callPackage ../../LightlyShaders {})
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
# nixpkgs.overlays = [
|
||||||
|
|
||||||
(import (builtins.fetchTarball {
|
# (import (builtins.fetchTarball {
|
||||||
url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
# url = https://github.com/nix-community/emacs-overlay/archive/master.tar.gz;
|
||||||
sha256 = "1v1n30a2ai5mnlkrkwv4mfczd3601sqxxlawadxariblfvg7qz4j";
|
# sha256 = "1v1n30a2ai5mnlkrkwv4mfczd3601sqxxlawadxariblfvg7qz4j";
|
||||||
}))
|
# }))
|
||||||
|
|
||||||
(self: super:
|
# (self: super:
|
||||||
{
|
# {
|
||||||
myAwesome = super.awesome.overrideAttrs (old: rec {
|
# myAwesome = super.awesome.overrideAttrs (old: rec {
|
||||||
pname = "myAwesome";
|
# pname = "myAwesome";
|
||||||
version = "git-20220614-3a54221";
|
# version = "git-20220614-3a54221";
|
||||||
src = super.fetchFromGitHub {
|
# src = super.fetchFromGitHub {
|
||||||
owner = "awesomeWM";
|
# owner = "awesomeWM";
|
||||||
repo = "awesome";
|
# repo = "awesome";
|
||||||
rev = "3a542219f3bf129546ae79eb20e384ea28fa9798";
|
# rev = "3a542219f3bf129546ae79eb20e384ea28fa9798";
|
||||||
sha256 = "4z3w6iuv+Gw2xRvhv2AX4suO6dl82woJn0p1nkEx3uM=";
|
# sha256 = "4z3w6iuv+Gw2xRvhv2AX4suO6dl82woJn0p1nkEx3uM=";
|
||||||
};
|
# };
|
||||||
patches = [];
|
# patches = [];
|
||||||
});
|
# });
|
||||||
}
|
# }
|
||||||
)
|
# )
|
||||||
|
#
|
||||||
(self: super:
|
# (self: super:
|
||||||
{
|
# {
|
||||||
qt5ct = super.qt5ct.overrideAttrs (old: rec {
|
# qt5ct = super.qt5ct.overrideAttrs (old: rec {
|
||||||
patches = (old.patches or []) ++ [
|
# patches = (old.patches or []) ++ [
|
||||||
../../qt5ct.patch
|
# ../../qt5ct.patch
|
||||||
];
|
# ];
|
||||||
});
|
# });
|
||||||
}
|
# }
|
||||||
)
|
# )
|
||||||
];
|
# ];
|
||||||
|
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
boot.extraModulePackages = [ config.boot.kernelPackages.nvidiaPackages.latest ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
|
{ device = "/dev/disk/by-uuid/9b5a1a62-0de6-4e07-a541-634736980d10";
|
||||||
|
|
Loading…
Reference in a new issue