10   nixpkgs.hostPlatform = {
 
  11     system = "x86_64-linux";
 
  12     config = "x86_64-unknown-linux-gnu";
 
  14   _module.args.CPUs = 4;
 
  15   hardware.cpu.amd.updateMicrocode = mkDefault config.hardware.enableRedistributableFirmware;
 
  16   powerManagement.cpuFreqGovernor = mkDefault "ondemand";
 
  18   # Too CPU hungry for this hardware, for too little MiB saved
 
  19   nix.settings.auto-optimise-store = false;
 
  21   # https://insanity.industries/post/sata-power-consumption/
 
  22   services.udev.extraRules = ''
 
  23     SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="med_power_with_dipm"
 
  30       configurationLimit = mkDefault 1;
 
  32       # In case canTouchEfiVariables doesn't work
 
  33       #efiInstallAsRemovable = true;
 
  35         # Completed in the importing configuration
 
  39         { devices = [ "${disk_id}" ];
 
  40           path    = "/boot${bootnum}";
 
  47       canTouchEfiVariables = true;
 
  48       efiSysMountPoint = "/boot/efi";
 
  54     availableKernelModules = [
 
  64       # Enable to switch to stage-2 from the SD card
 
  69   boot.consoleLogLevel = mkDefault 7;
 
  72     "console=ttyS0,115200n8"
 
  73     # Use arc_summary to print stats
 
  74     #"zfs.zfs_arc_max=${toString (500 * 1024 * 1024)}" # bytes
 
  77   environment.systemPackages = [