nixos/neko/hardware-configuration.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-15 18:56:16 +01: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, ... }:
{
2023-09-17 15:57:39 +02:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-01-15 18:56:16 +01:00
2024-10-10 21:56:13 +02:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "sd_mod" ];
2023-06-09 18:28:17 +02:00
boot.initrd.kernelModules = [ "i915" ];
2023-01-15 18:56:16 +01:00
boot.kernelModules = [ "kvm-intel" ];
2024-10-10 21:59:50 +02:00
# Intel microcode updates please
hardware.cpu.intel.updateMicrocode = true;
# intel graphics
hardware.graphics.extraPackages = with pkgs; [ intel-media-driver intel-compute-runtime ];
2024-08-19 23:11:31 +02:00
# /boot efi partition to boot in UEFI mode
2024-10-30 22:41:17 +01:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/554C-161A";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
neededForBoot = true;
};
# encrypted system
boot.initrd.luks.devices."crypt-system" = {
device = "/dev/disk/by-uuid/91f98284-b0fa-40b9-8a32-37f71968b2dd";
allowDiscards = true;
bypassWorkqueues = true;
};
2023-01-15 18:56:16 +01:00
}