2022-03-25 21:49:08 +01:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
2022-03-23 15:03:08 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../modules
|
2022-03-23 17:15:28 +01:00
|
|
|
|
2022-03-26 12:49:01 +01:00
|
|
|
./services/bang-evaluator.nix
|
2022-06-27 14:45:48 +02:00
|
|
|
./services/buchborgen.nix
|
2022-03-26 14:39:47 +01:00
|
|
|
./services/coturn.nix
|
2022-03-25 20:30:03 +01:00
|
|
|
./services/element-web.nix
|
2022-03-23 17:15:28 +01:00
|
|
|
./services/gitea.nix
|
2022-03-25 21:49:08 +01:00
|
|
|
./services/grafana.nix
|
2022-07-07 13:42:28 +02:00
|
|
|
./services/grocy.nix
|
2022-03-23 17:27:55 +01:00
|
|
|
./services/hedgedoc.nix
|
2022-03-23 17:50:43 +01:00
|
|
|
./services/invidious
|
|
|
|
./services/libreddit.nix
|
2022-03-25 21:49:08 +01:00
|
|
|
./services/matrix
|
2022-03-23 18:07:16 +01:00
|
|
|
./services/murmur.nix
|
2022-03-23 17:50:43 +01:00
|
|
|
./services/nitter.nix
|
2022-07-16 19:52:40 +02:00
|
|
|
./services/password-hash-self-service.nix
|
2022-03-25 21:49:08 +01:00
|
|
|
./services/prometheus.nix
|
2022-09-08 11:10:47 +02:00
|
|
|
./services/psycho-power-papagei.de
|
2022-03-23 17:50:43 +01:00
|
|
|
./services/sbruder.xyz
|
2022-04-09 10:10:08 +02:00
|
|
|
./services/schabernack.nix
|
2022-09-30 11:33:20 +02:00
|
|
|
./services/wordclock-dimmer.nix
|
2022-03-23 15:03:08 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
sbruder = {
|
|
|
|
nginx.hardening.enable = true;
|
|
|
|
restic.system = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
wireguard.home.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "renge";
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
2022-03-25 21:49:08 +01:00
|
|
|
|
|
|
|
virtualHosts."sbruder.de" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
root = pkgs.sbruder.contact;
|
|
|
|
};
|
2022-03-23 15:03:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [
|
|
|
|
80
|
|
|
|
443
|
|
|
|
];
|
2022-03-23 17:16:00 +01:00
|
|
|
|
|
|
|
services.postgresqlBackup = {
|
|
|
|
enable = true;
|
|
|
|
startAt = [ ]; # triggered by restic system backup
|
|
|
|
location = "/var/lib/postgresql-backup";
|
|
|
|
};
|
|
|
|
systemd.services.restic-backups-system = {
|
|
|
|
after = [ "postgresqlBackup.service" ];
|
|
|
|
wants = [ "postgresqlBackup.service" ];
|
|
|
|
};
|
2022-03-23 15:03:08 +01:00
|
|
|
}
|