description = "Peertube user";
home = peertube.varDir;
useDefaultShell = true;
+ extraGroups = [ "keys" ];
};
users.groups.peertube.gid = config.ids.gids.peertube;
destDir = "/run/keys/webapps";
user = "peertube";
group = "peertube";
- permissions = "0400";
+ permissions = "0640";
text = peertube.config;
};
text = ''
install -m 0750 -o peertube -g peertube -d ${peertube.varDir}
install -m 0750 -o peertube -g peertube -d ${peertube.varDir}/config
- install -m 0640 -o peertube -g peertube -T /run/keys/webapps/tools-peertube ${peertube.varDir}/config/production.yaml
+ ln -sf /run/keys/webapps/tools-peertube ${peertube.varDir}/config/production.yaml
'';
};