mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
Using ./home.nix and ./nixos.nix as entrypoints for hosts. Using hardware profiles. Using new entrypoints (profiles/base/profiles.nix + profiles/base/home.nix). New modules (for DNS handling, for themeing, ...). Split up deploy-tf.nix into several modules. Renamed common profile to base profile.
26 lines
442 B
Nix
26 lines
442 B
Nix
{ config, pkgs, ... }:
|
|
|
|
/*
|
|
This hardware profile corresponds to any machine which has an AMD Ryzen processor.
|
|
*/
|
|
|
|
{
|
|
deploy.profile.hardware.ryzen = true;
|
|
|
|
boot = {
|
|
kernelModules = [
|
|
"msr"
|
|
"ryzen_smu"
|
|
"kvm-amd"
|
|
];
|
|
kernelParams = [ "amd_iommu=on" ];
|
|
};
|
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
lm_sensors
|
|
ryzen-smu-monitor_cpu
|
|
ryzen-monitor
|
|
];
|
|
}
|