Joey Hafner
a9290d0189
- ai.nix for all LLM/AI/ML programs/services/configurations. - Flatten module tree to 2 levels: configuration.nix, and modules imported by configuration.nix - Split fileSystems from hardware, mount /mnt/iscsi/joey-desktop, rename fedora drive to data.
29 lines
831 B
Nix
29 lines
831 B
Nix
{ pkgs, sys, ... }: {
|
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" ];
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
boot.kernelPackages = pkgs.linuxKernel.packages."${sys.kernelPackage}";
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
boot.kernelModules = [ "amdgpu" "kvm-amd" ];
|
|
hardware = {
|
|
amdgpu.amdvlk.enable = false;
|
|
graphics = {
|
|
enable = true;
|
|
enable32Bit = true;
|
|
};
|
|
};
|
|
environment.systemPackages = with pkgs; [
|
|
rocmPackages.rocm-smi
|
|
rocmPackages.rocminfo
|
|
];
|
|
environment.variables = {
|
|
AMD_VULKAN_ICD = "RADV";
|
|
};
|
|
home-manager.users."${sys.username}" = {
|
|
home.packages = with pkgs; [ amdgpu_top ];
|
|
};
|
|
|
|
networking.hostName = "${sys.hostname}";
|
|
} |