nixos: remove hardware.nix
This commit is contained in:
parent
dd167477ed
commit
2fb6a86718
5 changed files with 7 additions and 16 deletions
|
@ -11,7 +11,7 @@ in {
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
boot.kernelModules = ["kvm-intel"];
|
boot.kernelModules = ["kvm-intel"];
|
||||||
hardware.cpu.intel.updateMicrocode = true;
|
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
nixpkgs.hostPlatform = "x86_64-linux";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
|
hardware.enableRedistributableFirmware = true;
|
||||||
|
#hardware.enableAllFirmware = true;
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowBroken = false;
|
allowBroken = false;
|
||||||
allowUnsupportedSystem = false;
|
allowUnsupportedSystem = false;
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware.nix # TODO: move this somewhere else?
|
|
||||||
|
|
||||||
# TODO: should this be considered user-specific?
|
|
||||||
./overlays
|
./overlays
|
||||||
./anti-feature.nix
|
./anti-feature.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
_: {
|
|
||||||
hardware = {
|
|
||||||
enableRedistributableFirmware = true;
|
|
||||||
#enableAllFirmware = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
#printing.enable = true; # Printing
|
|
||||||
thermald.enable = true; # Prevents overheating
|
|
||||||
fwupd.enable = true; # Firmware update
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -8,4 +8,7 @@
|
||||||
networking.stevenblack.enable = true;
|
networking.stevenblack.enable = true;
|
||||||
services.system76-scheduler.enable = true;
|
services.system76-scheduler.enable = true;
|
||||||
services.power-profiles-daemon.enable = true;
|
services.power-profiles-daemon.enable = true;
|
||||||
|
services.thermald.enable = true;
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
#services.printing.enable = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue