work details

This commit is contained in:
Zoty 2026-06-12 17:54:57 -03:00
parent d390530b35
commit de83e8a338
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
6 changed files with 86 additions and 84 deletions

View file

@ -1,26 +1,31 @@
{ config, lib, modulesPath, ... }: {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
# 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, ... }:
# AMD Ryzen 7 4000 series (Renoir)
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "sd_mod" ];
boot.kernelModules = [ "kvm-amd" "amdgpu" ];
boot.extraModulePackages = [];
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/1c2840f7-3924-477d-a8e7-707c95874441";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/24C6-A993";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
# PRIME offload: AMD iGPU renders the display, NVIDIA dGPU handles offloaded workloads.
# Fill in the Bus IDs before building the ISO.
# To get them: boot any live Linux on the machine and run:
# lspci -D | grep -E '(VGA|3D|Display)'
# Then convert the PCI address (e.g. 0000:06:00.0) to the format "PCI:6:0:0".
hardware.nvidia.prime = {
offload.enable = true;
offload.enableOffloadCmd = true;
amdgpuBusId = "PCI:FILL:IN:ME"; # TODO: AMD Radeon Vega iGPU bus ID
nvidiaBusId = "PCI:FILL:IN:ME"; # TODO: NVIDIA GTX 1650 dGPU bus ID
};
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}