feat(cache): add cache service
This commit is contained in:
parent
5402760418
commit
2292d645bb
3 changed files with 37 additions and 12 deletions
|
|
@ -15,23 +15,11 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
age.secrets = {
|
||||
hydra_key = {
|
||||
owner = "hydra";
|
||||
group = "hydra";
|
||||
file = ./sec/hydra_key.age;
|
||||
};
|
||||
};
|
||||
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
hydraURL = "https://hydra.zoeys.computer";
|
||||
useSubstitutes = true;
|
||||
notificationSender = "hydra@localhost"; # e-mail of hydra service
|
||||
|
||||
extraConfig = ''
|
||||
binary_cache_secret_key_file = ${sec.hydra_key.path}
|
||||
'';
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."hydra.zoeys.computer" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue