refactor(nixosModules/hardware): move cpu config intondefault
This commit is contained in:
parent
e688519d02
commit
97746093ed
2 changed files with 19 additions and 23 deletions
|
@ -1,13 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
{
|
|
||||||
config = lib.mkMerge [
|
|
||||||
(lib.mkIf (config.hardware.platform == "amd") {
|
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
|
||||||
})
|
|
||||||
(lib.mkIf (config.hardware.platform == "intel") {
|
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -1,10 +1,9 @@
|
||||||
{ lib, ... }:
|
{ lib, config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./btrfs.nix
|
./btrfs.nix
|
||||||
./nvidia.nix
|
./nvidia.nix
|
||||||
./audio.nix
|
./audio.nix
|
||||||
./cpu.nix
|
|
||||||
./networking.nix
|
./networking.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -18,12 +17,22 @@
|
||||||
platform = lib.pantheon.mkStrOption;
|
platform = lib.pantheon.mkStrOption;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = lib.mkMerge [
|
||||||
services.fwupd.enable = true;
|
{
|
||||||
hardware.bluetooth = {
|
services.fwupd.enable = true;
|
||||||
enable = true;
|
hardware.bluetooth = {
|
||||||
settings.General.Experimental = true;
|
enable = true;
|
||||||
};
|
settings.General.Experimental = true;
|
||||||
hardware.xone.enable = true;
|
};
|
||||||
};
|
hardware.xone.enable = true;
|
||||||
|
}
|
||||||
|
(lib.mkIf (config.hardware.platform == "amd") {
|
||||||
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
})
|
||||||
|
(lib.mkIf (config.hardware.platform == "intel") {
|
||||||
|
hardware.cpu.intel.updateMicrocode = true;
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue