mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-11 21:06:19 +03:00

After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRev57b193d8dd
result/bin/apply-formatting $NIXPKGS_PATH
30 lines
881 B
Nix
30 lines
881 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
cfg = config.hardware.cpu.amd.ryzen-smu;
|
|
ryzen-smu = config.boot.kernelPackages.ryzen-smu;
|
|
in
|
|
{
|
|
options.hardware.cpu.amd.ryzen-smu = {
|
|
enable = mkEnableOption ''
|
|
ryzen_smu, a linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors.
|
|
|
|
WARNING: Damage cause by use of your AMD processor outside of official AMD specifications or outside of factory settings are not covered under any AMD product warranty and may not be covered by your board or system manufacturer's warranty
|
|
'';
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
boot.kernelModules = [ "ryzen-smu" ];
|
|
boot.extraModulePackages = [ ryzen-smu ];
|
|
environment.systemPackages = [ ryzen-smu ];
|
|
};
|
|
|
|
meta.maintainers = with lib.maintainers; [
|
|
Cryolitia
|
|
phdyellow
|
|
];
|
|
}
|