nix-config/hosts/franz/hydra.nix
GHOSCHT 241dc3e053
Add basic hydra ci
Add basic hydra ci
2024-05-23 23:58:53 +02:00

28 lines
873 B
Nix

{config, ...}: {
services.hydra = {
enable = true;
hydraURL = "http://localhost:3000"; # externally visible URL
notificationSender = "hydra@localhost"; # e-mail of hydra service
# a standalone hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
buildMachinesFiles = [];
# you will probably also want, otherwise *everything* will be built from scratch
useSubstitutes = true;
};
nix.settings.allowed-uris = [
"github:"
"git+https://github.com/"
"git+ssh://github.com/"
"git+https://git.ghoscht.com/"
"git+ssh://git.ghoscht.com/"
"https://git.ghoscht.com/"
];
networking.firewall = {
allowedTCPPorts = [config.services.hydra.port];
};
# nix.gc = {
# automatic = true;
# dates = "15 3 * * *"; # [1]
# };
#
nix.autoOptimiseStore = true;
}