2025-06-20 11:59:24 -07:00
|
|
|
|
# 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."/" =
|
2025-08-12 11:58:29 -07:00
|
|
|
|
{ device = "/dev/disk/by-uuid/59e32983-f2f6-4ea3-b295-e8886f159002";
|
2025-06-20 11:59:24 -07:00
|
|
|
|
fsType = "ext4";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fileSystems."/boot" =
|
2025-08-12 11:58:29 -07:00
|
|
|
|
{ device = "/dev/disk/by-uuid/2B41-6F12";
|
2025-06-20 11:59:24 -07:00
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|