mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 23:33:56 -05:00
hwModules/legion/go: add bazzite storage udev rules
This commit is contained in:
parent
b1b462ac2d
commit
c5f326b34d
|
@ -115,6 +115,17 @@ in {
|
|||
'')
|
||||
];
|
||||
|
||||
udev.extraRules = ''
|
||||
# SSD
|
||||
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber"
|
||||
# NVME
|
||||
ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber"
|
||||
# MicroSD
|
||||
ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
|
||||
# HDD
|
||||
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
|
||||
'';
|
||||
|
||||
upower.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue