minisforum/v3: init

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
eum3l
2024-10-30 22:00:08 +01:00
committed by mergify[bot]
parent be00f01542
commit d3986e7885
8 changed files with 166 additions and 3 deletions

19
minisforum/v3/power.nix Normal file
View File

@@ -0,0 +1,19 @@
{ pkgs, ... }:
{
# From "Optimizing power draw (under Linux)": https://github.com/mudkipme/awesome-minisforum-v3/issues/5#issue-2391536450
boot.kernelParams = [ "pcie_aspm.policy=powersupersave" ];
systemd.services.enable-aspm = {
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStart = "${pkgs.bash}/bin/bash ${pkgs.callPackage ./src.nix { }}/aspm_v3.sh";
Restart = "no";
};
path = with pkgs; [
bc
pciutils
];
};
}