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
558 B
Nix
19 lines
558 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
inherit (lib) mkIf mkMerge mkThenElse;
|
|
annuaire = config.r6d.machines;
|
|
currentMachine = annuaire."${config.networking.fqdn}";
|
|
flags = currentMachine.configurationFlags;
|
|
in
|
|
|
|
mkIf false {
|
|
# 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"
|
|
'';
|
|
|
|
}
|