os/hosts/ryzensun/hardware-configuration.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
941 B
Nix
Raw Normal View History

2021-06-22 00:47:43 +00: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.
{
2023-01-28 20:49:10 +00:00
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2021-06-22 00:47:43 +00:00
2023-01-28 20:49:10 +00:00
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd"];
boot.extraModulePackages = [];
2021-06-22 00:47:43 +00:00
2023-01-28 20:49:10 +00:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/bad2e49e-c8e7-4516-a6f8-77db999d12b0";
fsType = "ext4";
};
2021-06-22 00:47:43 +00:00
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/ef6c5bb0-0bcf-4af4-bbc9-02c849999e54";
2023-01-28 20:49:10 +00:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2C62-C8B5";
fsType = "vfat";
};
2021-06-22 00:47:43 +00:00
2023-01-28 20:49:10 +00:00
swapDevices = [];
2021-06-22 00:47:43 +00:00
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
}