mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-22 04:07:28 +01:00
sarek: initialize postgresql
This commit is contained in:
parent
49fcd0cd78
commit
d316bfec3d
@ -6,7 +6,8 @@
|
||||
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
||||
../../base.nix
|
||||
../../common/metrics-exporters.nix
|
||||
# ./hardware-configuration.nix
|
||||
|
||||
./services/postgresql.nix
|
||||
];
|
||||
|
||||
# Boot and console is handled by proxmoxLXC.
|
||||
|
17
hosts/sarek/services/postgresql.nix
Normal file
17
hosts/sarek/services/postgresql.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
enableTCPIP = true; # Expose on the network
|
||||
};
|
||||
|
||||
services.postgresqlBackup = {
|
||||
enable = true;
|
||||
location = "/backup/postgresql/";
|
||||
startAt = "*-*-* 03:15:00";
|
||||
backupAll = true;
|
||||
};
|
||||
|
||||
|
||||
environment.systemPackages = [ config.services.postgresql.package ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user