services: postgresql-backup: enable with postgres
This commit is contained in:
parent
42e681bb81
commit
1b200779b2
|
@ -73,10 +73,6 @@ in {
|
||||||
privatePort = 8080;
|
privatePort = 8080;
|
||||||
};
|
};
|
||||||
|
|
||||||
postgresql-backup = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
restic-backup = {
|
restic-backup = {
|
||||||
enable = true;
|
enable = true;
|
||||||
repo = "b2:hades-backup-alarsyo";
|
repo = "b2:hades-backup-alarsyo";
|
||||||
|
|
|
@ -117,10 +117,6 @@ in {
|
||||||
secretKeyFile = config.age.secrets."paperless/secret-key".path;
|
secretKeyFile = config.age.secrets."paperless/secret-key".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
postgresql-backup = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
tailscale = {
|
tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exitNode = true;
|
exitNode = true;
|
||||||
|
|
|
@ -13,7 +13,9 @@
|
||||||
cfg = config.my.services.postgresql-backup;
|
cfg = config.my.services.postgresql-backup;
|
||||||
in {
|
in {
|
||||||
options.my.services.postgresql-backup = {
|
options.my.services.postgresql-backup = {
|
||||||
enable = mkEnableOption "Backup SQL databases";
|
enable =
|
||||||
|
(mkEnableOption "Backup SQL databases")
|
||||||
|
// {default = config.services.postgresql.enable;};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
Loading…
Reference in a new issue