diff options
author | lassulus <lassulus@lassul.us> | 2023-01-19 14:12:03 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2023-01-19 14:12:03 +0100 |
commit | c89f76a0bd4f5060ead3d942387c37aff1350ec8 (patch) | |
tree | 6715b9053f54a97a5b72a4dd8a06a865326b5a91 /makefu/1systems/snake/hardware-config.nix | |
parent | b51998cfae7b6fe892f9f0f9a2c0ffcfeeded0ba (diff) | |
parent | cb7ebd1c9120eb03ded2334db4c41fe6a0e26b88 (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/1systems/snake/hardware-config.nix')
-rw-r--r-- | makefu/1systems/snake/hardware-config.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/makefu/1systems/snake/hardware-config.nix b/makefu/1systems/snake/hardware-config.nix new file mode 100644 index 000000000..827c1d3eb --- /dev/null +++ b/makefu/1systems/snake/hardware-config.nix @@ -0,0 +1,21 @@ +{ pkgs, lib, ... }: +{ + imports = [ + <nixpkgs/nixos/modules/installer/scan/not-detected.nix> + ]; + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.efiSupport = true; + boot.loader.grub.device = "/dev/sda"; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" ]; + boot.kernelModules = [ "kvm-amd" ]; + disko.devices = import ./disk.nix; + + hardware.enableRedistributableFirmware = true; + hardware.cpu.amd.updateMicrocode = true; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; + + boot.kernelParams = [ "net.ifnames=0" ]; + networking.hostId = "0123AABB"; +} |