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
|
@ -6,7 +6,9 @@
|
|||
./hardware-configuration.nix
|
||||
./modules/networks
|
||||
./modules/backup
|
||||
./modules/cache
|
||||
./modules/grafana
|
||||
./modules/hydra
|
||||
./modules/prometheus
|
||||
./modules/matrix
|
||||
./modules/seafile
|
||||
|
@ -46,7 +48,6 @@
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
wget
|
||||
htop-vim
|
||||
helix
|
||||
lsof
|
||||
|
@ -64,10 +65,6 @@
|
|||
services.openssh.enable = true;
|
||||
services.journald.enableHttpGateway = true;
|
||||
programs.mosh.enable = true;
|
||||
security = {
|
||||
audit.enable = true;
|
||||
auditd.enable = true;
|
||||
};
|
||||
|
||||
|
||||
# firmware updates
|
||||
|
|
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