2024-10-24 09:59:58 +02:00
|
|
|
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
|
|
|
|
# and may be overwritten by future invocations. Please make changes
|
|
|
|
|
# to /etc/nixos/configuration.nix instead.
|
|
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
|
|
|
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
|
|
|
|
|
|
# AMD microcode updates please
|
|
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
|
|
|
|
|
|
# amd graphics
|
2024-10-24 10:19:37 +02:00
|
|
|
|
hardware.graphics.extraPackages = with pkgs; [ amdvlk rocmPackages.clr.icd ];
|
2024-10-24 09:59:58 +02:00
|
|
|
|
|
|
|
|
|
# /boot efi partition to boot in UEFI mode
|
2024-10-31 17:56:02 +01:00
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/5B5C-07AD";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# encrypted system
|
|
|
|
|
boot.initrd.luks.devices."crypt-system" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/38f19fd3-61b4-4a34-a5b8-0059eeff3c8e";
|
|
|
|
|
allowDiscards = true;
|
|
|
|
|
bypassWorkqueues = true;
|
|
|
|
|
};
|
2024-10-24 09:59:58 +02:00
|
|
|
|
}
|