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" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1742288794, "lastModified": 1742288794,
@ -1241,6 +1257,7 @@
"mysecrets": "mysecrets", "mysecrets": "mysecrets",
"nix-flatpak": "nix-flatpak", "nix-flatpak": "nix-flatpak",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"stylix": "stylix", "stylix": "stylix",

View File

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

View File

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