You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
529 B
Nix
19 lines
529 B
Nix
9 years ago
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
inherit (lib) mkIf mkMerge mkThenElse;
|
||
|
cfg = config.r6d.config-generator;
|
||
|
computers = config.r6d.computers;
|
||
|
profiles = config.r6d.profiles;
|
||
|
in
|
||
|
|
||
8 years ago
|
mkIf false {
|
||
9 years ago
|
# Définition du IO Scheduler pour les SSD
|
||
|
services.udev.extraRules = ''
|
||
|
# set deadline scheduler for non-rotating disks
|
||
|
# according to https://wiki.debian.org/SSDOptimization, deadline is preferred over noop
|
||
|
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="deadline"
|
||
|
'';
|
||
|
|
||
|
}
|