mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Services] Make HDD protection service run in hard-realtime
This commit is contained in:
parent
e5dd1b7e89
commit
1e2feafd9f
1 changed files with 11 additions and 0 deletions
11
services.nix
11
services.nix
|
|
@ -94,6 +94,17 @@ in {
|
|||
})
|
||||
] (x: builtins.toJSON x));
|
||||
|
||||
|
||||
systemd.services."hdapsd@" = {
|
||||
serviceConfig = {
|
||||
Nice = -20;
|
||||
CPUSchedulingPolicy = "fifo";
|
||||
CPUSchedulingPriority = 99;
|
||||
IOSchedulingClass = "realtime";
|
||||
IOSchedulingPriority = 0;
|
||||
};
|
||||
};
|
||||
|
||||
programs.gnupg = {
|
||||
agent.enable = true;
|
||||
dirmngr.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue