From 91045aadd9808ef5bb3af9fc4d71e4abc206ab2d Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 30 Apr 2026 19:37:32 -0400 Subject: [PATCH] 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. --- nixos/modules/services/networking/nbd.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/nixos/modules/services/networking/nbd.nix b/nixos/modules/services/networking/nbd.nix index 1fcbc1969543..457c423aa89b 100644 --- a/nixos/modules/services/networking/nbd.nix +++ b/nixos/modules/services/networking/nbd.nix @@ -36,8 +36,6 @@ let generic = ( cfg.server.extraOptions // { - user = "root"; - group = "root"; port = cfg.server.listenPort; } // (optionalAttrs (cfg.server.listenAddress != null) {