]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/server.nix
mpv: af: default to loudnorm
[julm/julm-nix.git] / nixos / profiles / server.nix
1 { lib, ... }:
2 {
3 systemd.services.nix-daemon.serviceConfig = {
4 CPUSchedulingPolicy = lib.mkForce "batch";
5 IOSchedulingClass = lib.mkForce "best-effort";
6 # 0: high priority, 7: low priority
7 IOSchedulingPriority = lib.mkForce 4;
8 Nice = 0;
9 };
10
11 systemd.services.nix-gc.serviceConfig = {
12 CPUSchedulingPolicy = "idle";
13 IOSchedulingClass = "idle";
14 IOSchedulingPriority = 7;
15 Nice = 19;
16 };
17
18 systemd.sleep.extraConfig = ''
19 AllowSuspend=no
20 AllowHibernation=no
21 '';
22
23 }