nixos/nbd: unset user and group in config

The service is already running under root, nbd-server doesn't have to
set user and groups again. And setgroups is failing in the systemd
sandbox.
This commit is contained in:
Nick Cao
2026-05-02 08:45:24 -04:00
parent be431d2db0
commit 91045aadd9
@@ -36,8 +36,6 @@ let
generic = (
cfg.server.extraOptions
// {
user = "root";
group = "root";
port = cfg.server.listenPort;
}
// (optionalAttrs (cfg.server.listenAddress != null) {