31 lines
892 B
Nix
31 lines
892 B
Nix
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
{
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
|
|
|
# basic drivers
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
|
|
|
|
# AMD CPU
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
# AMD graphics
|
|
boot.initrd.kernelModules = [ "amdgpu" ];
|
|
services.ollama.acceleration = "rocm";
|
|
|
|
# /boot efi partition to boot in UEFI mode
|
|
fileSystems."/boot" = {
|
|
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part1";
|
|
fsType = "vfat";
|
|
neededForBoot = true;
|
|
options = [ "fmask=0022" "dmask=0022" ];
|
|
};
|
|
|
|
# /nix volume with the system & all persistent data
|
|
fileSystems."/nix" = {
|
|
device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part2";
|
|
fsType = "bcachefs";
|
|
neededForBoot = true;
|
|
};
|
|
}
|