mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
optimize hardware module
This commit is contained in:
parent
b45cd88a6e
commit
c8884e4509
2 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
hardware =
|
hardware =
|
||||||
nixos-hardware.nixosModules //
|
nixos-hardware.nixosModules //
|
||||||
import lib/hardware.nix "${nixpkgs}/nixos/modules";
|
import lib/hardware.nix;
|
||||||
|
|
||||||
forAllSystems = f: nixpkgs.lib.genAttrs
|
forAllSystems = f: nixpkgs.lib.genAttrs
|
||||||
[ "x86_64-linux" "aarch64-linux" ]
|
[ "x86_64-linux" "aarch64-linux" ]
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
modulesPath: {
|
{
|
||||||
physical = { lib, ... }: lib.mkMerge
|
physical = { lib, ... }: lib.mkMerge
|
||||||
[
|
[
|
||||||
(import "${modulesPath}/installer/scan/not-detected.nix" { inherit lib; })
|
|
||||||
{ hardware.cpu.amd.updateMicrocode = true; }
|
{ hardware.cpu.amd.updateMicrocode = true; }
|
||||||
{ hardware.cpu.intel.updateMicrocode = true; }
|
{ hardware.cpu.intel.updateMicrocode = true; }
|
||||||
|
{ hardware.enableRedistributableFirmware = true; }
|
||||||
];
|
];
|
||||||
|
|
||||||
qemu = { lib, ... }: lib.mkMerge
|
qemu = { lib, modulesPath, ... }: lib.mkMerge
|
||||||
[
|
[
|
||||||
(import "${modulesPath}/profiles/qemu-guest.nix" { })
|
(import "${modulesPath}/profiles/qemu-guest.nix" { })
|
||||||
{ services.qemuGuest.enable = true; }
|
{ services.qemuGuest.enable = true; }
|
||||||
|
|
Loading…
Reference in a new issue