stockholm/lass/1systems/neoprism/config.nix

52 lines
1.5 KiB
Nix
Raw Normal View History

2022-12-28 10:18:54 +00:00
{ config, lib, pkgs, ... }:
{
imports = [
<stockholm/lass>
<stockholm/lass/2configs/retiolum.nix>
2023-07-08 15:03:10 +00:00
<stockholm/lass/2configs/mail/internet-gateway.nix>
<stockholm/lass/2configs/binary-cache/server.nix>
<stockholm/lass/2configs/matrix.nix>
2023-04-23 10:36:04 +00:00
<stockholm/lass/2configs/gsm-wiki.nix>
2023-01-07 22:35:39 +00:00
# sync-containers
2023-01-02 00:23:42 +00:00
<stockholm/lass/2configs/consul.nix>
2023-02-21 10:15:26 +00:00
<stockholm/lass/2configs/services/flix/container-host.nix>
2023-02-21 09:10:53 +00:00
<stockholm/lass/2configs/services/radio/container-host.nix>
2023-01-26 15:15:35 +00:00
<stockholm/lass/2configs/ubik-host.nix>
<stockholm/lass/2configs/orange-host.nix>
<stockholm/krebs/2configs/hotdog-host.nix>
2023-01-07 22:35:39 +00:00
# other containers
2023-01-04 17:33:44 +00:00
<stockholm/lass/2configs/riot.nix>
2023-02-21 09:19:00 +00:00
# proxying of services
<stockholm/lass/2configs/services/radio/proxy.nix>
2023-02-21 10:15:26 +00:00
<stockholm/lass/2configs/services/flix/proxy.nix>
<stockholm/lass/2configs/services/coms/proxy.nix>
2022-12-28 10:18:54 +00:00
];
krebs.build.host = config.krebs.hosts.neoprism;
2023-01-26 15:15:49 +00:00
networking.firewall.allowedTCPPorts = [ 80 443 ];
security.acme.acceptTerms = true;
security.acme.defaults.email = "acme@lassul.us";
2023-07-08 15:03:10 +00:00
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedTlsSettings = true;
enableReload = true;
virtualHosts.default = {
default = true;
locations."= /etc/os-release".extraConfig = ''
default_type text/plain;
alias /etc/os-release;
'';
locations."~ ^/.well-known/acme-challenge/".root = "/var/lib/acme/acme-challenge";
};
};
2022-12-28 10:18:54 +00:00
}