mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
bring back hydra
This commit is contained in:
parent
031a2004f3
commit
60ed410a43
7 changed files with 62 additions and 23 deletions
20
hosts/nuc/modules/cache/default.nix
vendored
Normal file
20
hosts/nuc/modules/cache/default.nix
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
domain = "cache.rfive.de";
|
||||
in
|
||||
{
|
||||
age.secrets.cache = {
|
||||
file = ../../../../secrets/nuc/cache.age;
|
||||
};
|
||||
services.nix-serve = {
|
||||
enable = true;
|
||||
secretKeyFile = config.age.secrets.cache.path;
|
||||
};
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${toString config.services.nix-serve.port}";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue