31 lines
761 B
Nix
31 lines
761 B
Nix
|
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
{
|
||
|
|
||
|
# imports
|
||
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||
|
|
||
|
# bootloader
|
||
|
boot.extraModulePackages = [ ];
|
||
|
boot.initrd.kernelModules = [ ];
|
||
|
boot.kernelModules = [ "kvm-amd" "amdgpu" ];
|
||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||
|
|
||
|
# filesystems - boot
|
||
|
fileSystems."/boot" = {
|
||
|
device = "/dev/disk/by-label/boot";
|
||
|
fsType = "vfat";
|
||
|
};
|
||
|
|
||
|
# filesystems - root
|
||
|
fileSystems."/" = {
|
||
|
device = "/dev/disk/by-label/root";
|
||
|
fsType = "ext4";
|
||
|
};
|
||
|
|
||
|
# networking
|
||
|
networking.useDHCP = lib.mkDefault true;
|
||
|
|
||
|
# hardware
|
||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
}
|