48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
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, ... }:
|
|||
|
|
|||
|
{
|
|||
|
imports =
|
|||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
|||
|
];
|
|||
|
|
|||
|
config = {
|
|||
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "amdgpu" ];
|
|||
|
boot.initrd.kernelModules = [ ];
|
|||
|
boot.kernelModules = [ "kvm-amd" ];
|
|||
|
boot.extraModulePackages = [ ];
|
|||
|
|
|||
|
fileSystems."/" =
|
|||
|
{ device = "/dev/disk/by-uuid/aa4561b3-a61d-4ed9-8847-b88c6fc06525";
|
|||
|
fsType = "ext4";
|
|||
|
};
|
|||
|
|
|||
|
fileSystems."/boot" =
|
|||
|
{ device = "/dev/disk/by-uuid/6FD4-7839";
|
|||
|
fsType = "vfat";
|
|||
|
options = [ "fmask=0077" "dmask=0077" ];
|
|||
|
};
|
|||
|
|
|||
|
swapDevices = [{
|
|||
|
device = "/var/lib/swapfile";
|
|||
|
size = 8*1024;
|
|||
|
}];
|
|||
|
|
|||
|
networking.useDHCP = lib.mkDefault true;
|
|||
|
|
|||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|||
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|||
|
|
|||
|
hardware = {
|
|||
|
graphics = {
|
|||
|
enable = true;
|
|||
|
enable32Bit = true;
|
|||
|
extraPackages = with pkgs; [ amdvlk ];
|
|||
|
extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
|
|||
|
};
|
|||
|
};
|
|||
|
};
|
|||
|
}
|