flake/hosts/dust/hardware-configuration.nix

46 lines
904 B
Nix
Raw Normal View History

{ inputs, pkgs, ... }:
{
2024-07-24 00:14:27 +08:00
imports = [
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-12th-gen
];
hardware.firmware = with pkgs; [
linux-firmware
alsa-firmware
sof-firmware
];
2024-08-29 23:15:13 +08:00
services.fwupd.enable = true;
services.fprintd.enable = true;
2024-07-24 00:14:27 +08:00
security.rtkit.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
pulse.enable = true;
};
hardware.bluetooth = {
enable = true;
settings.General.FastConnectable = true;
};
2024-10-01 00:26:30 +08:00
networking.wireless.iwd.enable = true;
2024-07-24 00:14:27 +08:00
boot.loader.timeout = 0;
boot.loader.efi.canTouchEfiVariables = true;
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2024-07-24 00:14:27 +08:00
nixpkgs.hostPlatform = "x86_64-linux";
}