flake.nix: add nixos-hardware
hosts/dunamis/hardware.nix: add nixos-hardware Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -1,23 +1,19 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
imports = with inputs.nixos-hardware.nixosModules; [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
common-amd-cpu-pstate
|
||||
common-intel-gpu
|
||||
common-pc-ssd
|
||||
];
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
vaapiIntel
|
||||
vpl-gpu-rt
|
||||
];
|
||||
hardware = {
|
||||
enableRedistributableFirmware = true;
|
||||
intelgpu = {
|
||||
vaapiDriver = "intel-media-driver";
|
||||
useIntelMediaDriver = true;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
Reference in New Issue
Block a user