tinc module: add group for user
This commit is contained in:
parent
411cb36608
commit
c5bab88a9e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user