1 { pkgs, lib, config, ... }:
4 nixpkgs.hostPlatform = {
5 system = "x86_64-linux";
6 config = "x86_64-unknown-linux-gnu";
9 hardware.cpu.amd.updateMicrocode = true;
11 # Too CPU hungry for this hardware, for too little Mio saved
12 nix.settings.auto-optimise-store = false;
14 powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
16 # https://insanity.industries/post/sata-power-consumption/
17 services.udev.extraRules = ''
18 SUBSYSTEM=="scsi_host", KERNEL=="host*", ATTR{link_power_management_policy}="med_power_with_dipm"
26 configurationLimit = 1;
28 # In case canTouchEfiVariables doesn't work
29 #efiInstallAsRemovable = true;
31 # Completed in the importing configuration
35 { devices = [ "${disk_id}" ];
36 path = "/boot${bootnum}";
43 canTouchEfiVariables = true;
44 efiSysMountPoint = "/boot/efi";
50 availableKernelModules = [
58 # Make the AES modules available at initrd,
59 # to speedup the deciphering of the root.
66 # Enable boot from SD card
74 "console=ttyS0,115200n8"
75 # Use arc_summary to print stats
76 #"zfs.zfs_arc_max=${toString (500 * 1024 * 1024)}" # bytes
79 environment.systemPackages = [