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

17
flake.lock generated
View File

@ -1074,6 +1074,22 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1743167577,
"narHash": "sha256-I09SrXIO0UdyBFfh0fxDq5WnCDg8XKmZ1HQbaXzMA1k=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "0ed819e708af17bfc4bbc63ee080ef308a24aa42",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1742288794,
@ -1241,6 +1257,7 @@
"mysecrets": "mysecrets",
"nix-flatpak": "nix-flatpak",
"nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2",
"sops-nix": "sops-nix",
"stylix": "stylix",

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;