feat(hardware): improve firmware config
This commit is contained in:
parent
c90efc40f8
commit
386b3f6616
6 changed files with 10 additions and 11 deletions
hardware
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./planck.nix ];
|
||||
imports = [ ./firmware.nix ./planck.nix ];
|
||||
|
||||
boot.supportedFilesystems = lib.mkDefault [ "btrfs" ];
|
||||
boot.kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest;
|
||||
|
|
6
hardware/firmware.nix
Normal file
6
hardware/firmware.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
hardware.enableAllFirmware = true;
|
||||
services.fwupd.enable = true;
|
||||
}
|
|
@ -20,7 +20,8 @@
|
|||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/397a1a92-596f-421b-99e1-c9b2cb821309"; }];
|
||||
|
||||
# TODO keep this disabled?
|
||||
# nix.maxJobs = lib.mkDefault 8;
|
||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
|
||||
hardware.cpu.intel.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue