diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-02-01 00:32:50 -0500 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-02-20 19:58:14 -0500 |
commit | e9fa17eb98efbd6211ab44ab49b8c078d4b73e04 (patch) | |
tree | 3a1dba65fe871e068904e528b996997d1e9b7634 /etc | |
parent | 82d19441b989d082d89f4e36d99f225ffc8db654 (diff) | |
download | guix-e9fa17eb98efbd6211ab44ab49b8c078d4b73e04.tar.gz guix-e9fa17eb98efbd6211ab44ab49b8c078d4b73e04.zip |
services: udev: Use a fixed location for the rules directory and config.
Fixes <https://issues.guix.gnu.org/47681>.
This change adjusts the location of the udev configuration file and rules
directory to a fixed location. Since udev relies on inotify to discover
change to its rules directory (/etc/udev/rules.d), by using a fixed directory
layout, new udev rules can be automatically picked up without restarting the
service.
* gnu/services/base.scm (udev-rules-union): Build rules output directly
in #$output.
(udev-shepherd-service)[start]: Adjust the UDEV_CONFIG_FILE and
EUDEV_RULES_DIRECTORY environment variables.
[actions]: Remove field. The 'rules' action is no longer useful.
(udev.conf): New variable.
(udev-etc): New procedure.
(udev-service-type): Extend the etc-service-type with it.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions