diff --git a/nixos/modules/tahoe.nix b/nixos/modules/tahoe.nix index e0b6eb4d8be3c5359de1d391c42b2ba83f7a1ba4..44c381e6b6dfa6039d1dd6a49d44f1afaf51ab10 100644 --- a/nixos/modules/tahoe.nix +++ b/nixos/modules/tahoe.nix @@ -156,6 +156,10 @@ in nameValuePair "tahoe.introducer-${node}" { description = "Tahoe node user for introducer ${node}"; isSystemUser = true; + group = "tahoe.introducer-${node}"; + }); + users.groups = flip mapAttrs' cfg.introducers (node: _: + nameValuePair "tahoe.introducer-${node}" { }); }) (mkIf (cfg.nodes != {}) { @@ -287,6 +291,10 @@ in nameValuePair "tahoe.${node}" { description = "Tahoe node user for node ${node}"; isSystemUser = true; + group = "tahoe.${node}"; + }); + users.groups = flip mapAttrs' cfg.introducers (node: _: + nameValuePair "tahoe.${node}" { }); }) ];