configuration.nix/hosts/skipper/services/udev.nix

12 lines
459 B
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ pkgs, ... }: {
2023-04-07 20:47:01 +05:30
services.udev = {
enable = true;
2023-11-04 16:12:45 +05:30
packages = [ pkgs.yubikey-personalization ];
2024-05-27 05:01:17 +05:30
extraRules = ''
ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
ACTION=="add|change", KERNEL=="nvme[0-9]*", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber"
'';
2023-04-07 20:47:01 +05:30
};
}