type = lib.types.attrsOf lib.types.path;
default = lib.genAttrs (builtins.attrNames cfg.hosts) toVhostRoot;
};
+ vhostVarDirs = lib.mkOption {
+ description = "Instance vhosts var dirs";
+ readOnly = true;
+ type = lib.types.attrsOf lib.types.path;
+ default = lib.genAttrs (builtins.attrNames cfg.hosts) (n: "/var/lib/cryptpad/${n}");
+ };
};
config = {
users.users = lib.optionalAttrs (cfg.hosts != {}) {