services/{postgres,synapse}: use toString
This commit is contained in:
parent
3bea2397f5
commit
e29a690a6d
2 changed files with 4 additions and 4 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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}" ];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue