From 2cb2ffd25eed714a49c1071066616059a31149a8 Mon Sep 17 00:00:00 2001 From: Jon Erling Hustadnes Date: Mon, 10 Nov 2025 20:22:21 +0100 Subject: [PATCH] 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). --- pkgs/by-name/nu/nut/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/nu/nut/package.nix b/pkgs/by-name/nu/nut/package.nix index a73f4b20ce81..64efe0b6c811 100644 --- a/pkgs/by-name/nu/nut/package.nix +++ b/pkgs/by-name/nu/nut/package.nix @@ -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"