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:
Jon Erling Hustadnes
2025-11-10 20:26:25 +01:00
parent 23f6b82002
commit 2cb2ffd25e
+2
View File
@@ -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"