Skip to content

Commit

Permalink
nixos/nix: simplify CPU/IO sched classes
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 5, 2024
1 parent 93d5ae0 commit 778f1c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ in
# Optimise nix-store via service
optimise.automatic = true;
# Reduce disk usage
daemonIOSchedClass = if config.nixos.desktop.enable then "idle" else "best-effort";
daemonIOSchedPriority = 6;
daemonIOSchedClass = "best-effort";
daemonIOSchedPriority = 7;
# Leave nix builds as a background task
daemonCPUSchedPolicy = if config.nixos.desktop.enable then "idle" else "batch";
daemonCPUSchedPolicy = "batch";

# Customized nixpkgs, e.g.: `nix shell nixpkgs_#snes9x`
registry.nixpkgs_.flake = flake;
Expand Down

0 comments on commit 778f1c6

Please sign in to comment.