2023-01-15 18:56:16 +01: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, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2023-09-17 15:57:39 +02:00
|
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2023-01-15 18:56:16 +01:00
|
|
|
|
|
2024-01-11 23:47:10 +01:00
|
|
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
2023-06-03 18:24:28 +02:00
|
|
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
2023-02-15 21:19:56 +01:00
|
|
|
|
boot.kernelModules = [ "kvm-amd" ];
|
2023-01-15 18:56:16 +01:00
|
|
|
|
|
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-18 18:53:31 +02:00
|
|
|
|
# /boot efi partition to boot in UEFI mode
|
2024-10-29 18:37:48 +01:00
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/A361-6A10";
|
|
|
|
|
fsType = "vfat";
|
|
|
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
|
|
|
neededForBoot = true;
|
|
|
|
|
};
|
|
|
|
|
|
2024-10-29 18:51:28 +01:00
|
|
|
|
# encrypted system - on a md device
|
|
|
|
|
boot.swraid.enable = true;
|
2024-10-29 18:37:48 +01:00
|
|
|
|
boot.initrd.luks.devices."crypt-system" = {
|
|
|
|
|
device = "/dev/disk/by-uuid/a1d1ef39-74ea-4a6c-bc47-8ae90e002126";
|
|
|
|
|
allowDiscards = true;
|
|
|
|
|
bypassWorkqueues = true;
|
|
|
|
|
};
|
2023-01-15 18:56:16 +01:00
|
|
|
|
}
|