tinc module: add group for user

This commit is contained in:
lassulus 2021-10-23 12:07:40 +02:00
parent 411cb36608
commit c5bab88a9e

View File

@ -237,9 +237,14 @@ let
inherit (cfg.user) home name uid; inherit (cfg.user) home name uid;
createHome = true; createHome = true;
isSystemUser = true; isSystemUser = true;
group = netname;
} }
) config.krebs.tinc; ) config.krebs.tinc;
users.groups = mapAttrs' (netname: cfg:
nameValuePair netname {}
) config.krebs.tinc;
environment.etc = mapAttrs' (netname: cfg: environment.etc = mapAttrs' (netname: cfg:
nameValuePair "tinc/${netname}" (mkIf cfg.enableLegacy { nameValuePair "tinc/${netname}" (mkIf cfg.enableLegacy {
source = cfg.confDir; source = cfg.confDir;