postgres: add backup service, change initial mail
This commit is contained in:
parent
b5de57fd01
commit
61a99fae7b
|
@ -17,11 +17,17 @@
|
||||||
services.pgadmin = {
|
services.pgadmin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
initialEmail = "h7x4abk3g@protonmail.com";
|
initialEmail = "h7x4@nani.wtf";
|
||||||
initialPasswordFile = "${config.machineVars.dataDrives.default}/var/pgadmin_pass";
|
initialPasswordFile = "${config.machineVars.dataDrives.default}/var/pgadmin_pass";
|
||||||
port = secrets.ports.pgadmin;
|
port = secrets.ports.pgadmin;
|
||||||
settings = {
|
settings = {
|
||||||
DATA_DIR = "${config.machineVars.dataDrives.default}/var/pgadmin";
|
DATA_DIR = "${config.machineVars.dataDrives.default}/var/pgadmin";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.postgresqlBackup = {
|
||||||
|
enable = true;
|
||||||
|
location = "${config.machineVars.dataDrives.default}/backup/postgres";
|
||||||
|
backupAll = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue