Systemd : Add fix for PowerLimit.

This commit is contained in:
Dmitry Voronin 2024-05-06 22:59:18 +03:00
parent 28342f0cb1
commit 508ff9a894
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

10
module/common/Systemd.nix Normal file
View file

@ -0,0 +1,10 @@
{ ... }: {
# HACK: Fix for broken tmpfiles setup for some services like PowerLimit.
systemd.timers.tmpfilesfix = {
timerConfig = {
OnBootSec = 5;
Unit = "systemd-tmpfiles-resetup.service";
};
wantedBy = [ "timers.target" ];
};
}