nixos/systems/gwyn/hardware-configuration.nix

44 lines
804 B
Nix

{ lib, ... }:
{
imports = [
../../hardware/nvidia
];
boot.initrd.availableKernelModules = [
"aesni_intel"
"ahci"
"cryptd"
"nvme"
"rtsx_pci_sdmmc"
"sd_mod"
"sr_mod"
"usbhid"
"usb_storage"
"xhci_pci"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.kernelParams = [ ];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
boot.initrd.luks.devices."cryptlvm".device = "/dev/nvme0n1p2";
fileSystems."/" =
{
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-label/swap"; }];
}