nut: configure the user and group nut should be built with
The udev rules which are generated during build are defaulting to the `nobody` user which does not exist and should not be used (ref: [#55370](https://github.com/NixOS/nixpkgs/issues/55370)) This was also raised upstream [networkupstools/nut#3173](https://github.com/networkupstools/nut/issues/3173) and was informed that the `nobody` user will stay as is but they will consider adding a warning. The user and group should be set by the builder (end user / distribution).
This commit is contained in:
@@ -106,6 +106,8 @@ stdenv.mkDerivation rec {
|
||||
"--with-systemdshutdowndir=$(out)/lib/systemd/system-shutdown"
|
||||
"--with-systemdtmpfilesdir=$(out)/lib/tmpfiles.d"
|
||||
"--with-udev-dir=$(out)/etc/udev"
|
||||
"--with-user=nutmon"
|
||||
"--with-group=nutmon"
|
||||
]
|
||||
++ (lib.lists.optionals withApcModbus [
|
||||
"--with-modbus+usb"
|
||||
|
||||
Reference in New Issue
Block a user