add nixos-hardware

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-03-30 01:46:10 +02:00
parent d8b372c165
commit 351aa5e530
3 changed files with 22 additions and 7 deletions

View File

@ -1,19 +1,18 @@
{
lib,
inputs,
modulesPath,
...
}: {
imports = with inputs.nixos-hardware.nixosModules; [
(modulesPath + "/installer/scan/not-detected.nix")
common-amd-cpu-pstate
common-intel-gpu
common-cpu-amd-pstate
common-gpu-intel
common-pc-ssd
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware = {
enableRedistributableFirmware = true;
intelgpu = {
vaapiDriver = "intel-media-driver";
useIntelMediaDriver = true;
};
intelgpu.vaapiDriver = "intel-media-driver";
};
}

View File

@ -2,7 +2,6 @@
services = {
# hardware.openrgb.enable = true;
flatpak.enable = true;
fstrim.enable = true;
fwupd.enable = true;
openssh.enable = true;
syncthing.openDefaultPorts = true;