nixos-configs/hosts/nixos-desktop/hardware-configuration.nix

27 lines
709 B
Nix
Raw Normal View History

2020-02-20 03:10:43 +01:00
{ config, lib, pkgs, ... }:
{
2021-07-07 17:04:33 +02:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ "amdgpu" ];
2020-02-20 03:10:43 +01:00
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2021-07-07 17:04:33 +02:00
{ device = "/dev/disk/by-uuid/f1e21558-88e6-413e-b56a-04e0b25e9ddd";
2020-02-20 03:10:43 +01:00
fsType = "ext4";
};
fileSystems."/boot" =
2021-07-07 17:04:33 +02:00
{ device = "/dev/disk/by-uuid/CCD1-0415";
2020-02-20 03:10:43 +01:00
fsType = "vfat";
};
swapDevices =
2021-07-07 17:04:33 +02:00
[ { device = "/dev/disk/by-uuid/f714775c-b5af-4c0c-8330-999b43db4794"; }
2020-02-20 03:10:43 +01:00
];
nix.maxJobs = lib.mkDefault 16;
# High-DPI console
2020-03-09 23:20:16 +01:00
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-u28n.psf.gz";
2020-02-20 03:10:43 +01:00
}