20 lines
417 B
Nix
20 lines
417 B
Nix
{ ... }: {
|
|
imports = [
|
|
./postgres.nix
|
|
];
|
|
services.hydra = {
|
|
enable = true;
|
|
hydraURL = "http://localhost:3000";
|
|
notificationSender = "hydra@chir.rs";
|
|
useSubstitutes = true;
|
|
};
|
|
services.postgresql.ensureDatabases = [ "hydra" ];
|
|
services.postgresql.ensureUsers = [
|
|
{
|
|
name = "hydra";
|
|
ensurePermissions = {
|
|
"DATABASE hydra" = "ALL PRIVILEGES";
|
|
};
|
|
}
|
|
];
|
|
}
|