2024-07-04 13:01:45 +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" ];
|
|
|
|
|
|
2024-10-10 21:59:50 +02:00
|
|
|
|
# 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-10 21:59:50 +02:00
|
|
|
|
|
2024-08-20 20:31:58 +02:00
|
|
|
|
# /boot efi partition to boot in UEFI mode
|
2024-11-02 16:02:28 +01:00
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/E632-D1CA";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# encrypted system
|
|
|
|
|
boot.initrd.luks.devices."crypt-system" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/0021030c-73ab-4de5-8764-0af3bb6c415c";
|
|
|
|
|
allowDiscards = true;
|
|
|
|
|
bypassWorkqueues = true;
|
|
|
|
|
};
|
2024-07-04 13:01:45 +02:00
|
|
|
|
}
|