services/{postgres,synapse}: use toString

This commit is contained in:
LavaDesu 2022-02-13 21:12:10 +07:00
parent 3bea2397f5
commit e29a690a6d
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 4 additions and 4 deletions

View file

@ -1,8 +1,8 @@
{ config, ... }: { config, ... }:
let let
dir = "/persist/postgresql/${config.services.postgresql.package.psqlSchema}"; dir = "/persist/postgresql/${config.services.postgresql.package.psqlSchema}";
uid = config.ids.uids.postgres; uid = toString config.ids.uids.postgres;
gid = config.ids.gids.postgres; gid = toString config.ids.gids.postgres;
in { in {
systemd.tmpfiles.rules = [ "d ${dir} 700 ${uid} ${gid}" ]; systemd.tmpfiles.rules = [ "d ${dir} 700 ${uid} ${gid}" ];
services.postgresql = { services.postgresql = {

View file

@ -3,8 +3,8 @@ let
dom = "lava.moe"; dom = "lava.moe";
sub = "matrix.lava.moe"; sub = "matrix.lava.moe";
dir = "/persist/matrix-synapse"; dir = "/persist/matrix-synapse";
uid = config.ids.uids.matrix-synapse; uid = toString config.ids.uids.matrix-synapse;
gid = config.ids.gids.matrix-synapse; gid = toString config.ids.gids.matrix-synapse;
in { in {
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
systemd.tmpfiles.rules = [ "d ${dir} 700 ${uid} ${gid}" ]; systemd.tmpfiles.rules = [ "d ${dir} 700 ${uid} ${gid}" ];