refactor(nixos): move cpu and gpu config to modules
This commit is contained in:
parent
5bef7c46a6
commit
d816825ac3
6 changed files with 89 additions and 64 deletions
|
@ -1,18 +1,11 @@
|
|||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
{ inputs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../configs/filesystems/hw-nemesis.nix
|
||||
../configs/hardware/nvidia.nix
|
||||
../configs/hardware/powermanagement.nix
|
||||
inputs.nixos-hardware.nixosModules.gigabyte-b650
|
||||
];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
boot-config.bootloader = "systemd-boot";
|
||||
hardware-config.cpu = "amd";
|
||||
hardware-config.gpu = "nvidia";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue