This commit is contained in:
commit
fef2377502
174 changed files with 7423 additions and 0 deletions
22
nixos-modules/postgresql/default.nix
Normal file
22
nixos-modules/postgresql/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.qois.postgresql;
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
options.qois.postgresql = {
|
||||
enable = mkEnableOption ''Enable postgresql services with defaults'';
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.postgresql.enable = true;
|
||||
services.postgresqlBackup.enable = true;
|
||||
qois.backup-client.includePaths = [ config.services.postgresqlBackup.location ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue