[Services] Make HDD protection service run in hard-realtime

This commit is contained in:
Antoine Viallon 2022-02-08 12:12:35 +01:00
parent e5dd1b7e89
commit 1e2feafd9f
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -94,6 +94,17 @@ in {
}) })
] (x: builtins.toJSON x)); ] (x: builtins.toJSON x));
systemd.services."hdapsd@" = {
serviceConfig = {
Nice = -20;
CPUSchedulingPolicy = "fifo";
CPUSchedulingPriority = 99;
IOSchedulingClass = "realtime";
IOSchedulingPriority = 0;
};
};
programs.gnupg = { programs.gnupg = {
agent.enable = true; agent.enable = true;
dirmngr.enable = true; dirmngr.enable = true;