Created
May 28, 2021 00:39
-
-
Save insipx/8a2deedc2d307993b2a0f30c10847970 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
disabledModules = [ | |
"hardware/video/nvidia.nix" | |
]; | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
./neovim.nix | |
<nixos-unstable/nixos/modules/hardware/video/nvidia.nix> | |
]; | |
nixpkgs.overlays = [ | |
(self: super: | |
{ | |
linuxPackages_latest = super.linuxPackages_latest.extend (linuxSelf: linuxSuper: | |
let | |
generic = args: linuxSelf.callPackage (import <nixos-unstable/pkgs/os-specific/linux/nvidia-x11/generic.nix> args) { }; | |
in | |
{ | |
nvidiaPackages.stable = generic { | |
version = "460.73.01"; | |
sha256_64bit = "120ymf59l6nipczszf82lrm2p4ihhqyv2pfwwfg9wy96vqcckc8i"; | |
settingsSha256 = "08jh7g34p9yxv5fh1cw0r2pjx65ryiv3w2lk1qg0gxn2r7xypkx0"; | |
persistencedSha256 = "040gx4wqp3hxcfb4aba4sl7b01ixr5slhzw0xldwcqlmhpwqphi5"; | |
}; | |
}); | |
}) | |
]; | |
boot = { | |
loader.systemd-boot.enable = true; | |
loader.efi.canTouchEfiVariables = true; | |
initrd = { | |
luks.devices = { | |
crypted = { | |
device = "/dev/disk/by-uuid/536c083c-8a4d-47b4-84fb-f4cd353c0f17 "; | |
preLVM = true; | |
}; | |
}; | |
availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; | |
kernelModules = [ "dm-snapshot" ]; | |
}; | |
supportedFilesystems = [ "ext4" "ntfs" ]; | |
kernelModules = [ "kvm-amd" "nct6775" "nvidia" ]; | |
kernelPackages = pkgs.linuxPackages_latest; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment