anchor.diff:      systemd.tmpfiles.rules = [
         "d '/var/lib/peertube/config' 0700 ${cfg.user} ${cfg.group} - -"
         "z '/var/lib/peertube/config' 0700 ${cfg.user} ${cfg.group} - -"
  +      "d '/var/lib/peertube/www' 0750 ${cfg.user} ${cfg.group} - -"
  +      "z '/var/lib/peertube/www' 0750 ${cfg.user} ${cfg.group} - -"
       ];
   
       systemd.services.peertube-init-db = lib.mkIf cfg.database.createLocally {
  
positive.code:       description = lib.mdDoc "Configuration for peertube.";
      };
  
      database = {
        createLocally = lib.mkOption {
          type = lib.types.bool;
  
negative.code:       (lib.mkIf cfg.redis.enableUnixSocket {${config.services.peertube.user}.extraGroups = [ "redis-peertube" ];})
      ];
  
      users.groups = {
        ${cfg.group} = {
          members = lib.optional cfg.configureNginx config.services.nginx.user;
        };
      };
    };
  }
  