nixos-config/config/services/hydra.nix

22 lines
497 B
Nix
Raw Normal View History

2022-02-18 14:49:19 +00:00
{ ... }: {
imports = [
./postgres.nix
];
services.hydra = {
enable = true;
hydraURL = "http://localhost:3000";
notificationSender = "hydra@chir.rs";
2022-02-18 14:56:22 +00:00
useSubstitutes = true;
2022-02-18 14:49:19 +00:00
};
services.postgresql.ensureDatabases = [ "hydra" ];
services.postgresql.ensureUsers = [
{
name = "hydra";
ensurePermissions = {
"DATABASE hydra" = "ALL PRIVILEGES";
};
}
];
nix.settings.allowed-uris = [ "https://github.com/" "https://git.chir.rs/" ];
2022-02-18 14:49:19 +00:00
}