nixos: remove hardware.nix

This commit is contained in:
Guanran Wang 2023-12-09 16:09:25 +08:00
parent dd167477ed
commit 2fb6a86718
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
5 changed files with 7 additions and 16 deletions

View file

@ -11,7 +11,7 @@ in {
config = lib.mkIf cfg.enable {
boot.kernelModules = ["kvm-intel"];
hardware.cpu.intel.updateMicrocode = true;
hardware.cpu.intel.updateMicrocode = config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = "x86_64-linux";
};
}

View file

@ -1,4 +1,7 @@
{lib, ...}: {
hardware.enableRedistributableFirmware = true;
#hardware.enableAllFirmware = true;
nixpkgs.config = {
allowBroken = false;
allowUnsupportedSystem = false;

View file

@ -1,8 +1,5 @@
{...}: {
imports = [
./hardware.nix # TODO: move this somewhere else?
# TODO: should this be considered user-specific?
./overlays
./anti-feature.nix
];

View file

@ -1,12 +0,0 @@
_: {
hardware = {
enableRedistributableFirmware = true;
#enableAllFirmware = true;
};
services = {
#printing.enable = true; # Printing
thermald.enable = true; # Prevents overheating
fwupd.enable = true; # Firmware update
};
}

View file

@ -8,4 +8,7 @@
networking.stevenblack.enable = true;
services.system76-scheduler.enable = true;
services.power-profiles-daemon.enable = true;
services.thermald.enable = true;
services.fwupd.enable = true;
#services.printing.enable = true;
}