2024-01-06 01:19:35 +01:00
|
|
|
# SPDX-FileCopyrightText: 2023-2024 Simon Bruder <simon@sbruder.de>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2023-10-04 17:02:16 +02:00
|
|
|
{ lib, pkgs, ... }:
|
2023-10-04 15:15:54 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../modules
|
|
|
|
];
|
|
|
|
|
|
|
|
sbruder = {
|
2023-10-04 17:02:16 +02:00
|
|
|
nginx.hardening.enable = true;
|
2023-10-04 15:15:54 +02:00
|
|
|
wireguard.home.enable = true;
|
2024-01-03 12:04:26 +01:00
|
|
|
infovhost.enable = true;
|
2023-10-04 15:15:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "nazuna";
|
|
|
|
|
|
|
|
system.stateVersion = "23.05";
|
2023-10-04 17:02:16 +02:00
|
|
|
|
2023-12-16 10:19:20 +01:00
|
|
|
services.nginx.enable = true;
|
2023-10-04 17:02:16 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
systemd.services.nginx.serviceConfig.SupplementaryGroups = lib.singleton "keys";
|
|
|
|
|
|
|
|
sbruder.qbittorrent = {
|
|
|
|
enable = true;
|
|
|
|
fqdn = "sturzbach.sbruder.de";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nginx.virtualHosts."sturzbach.sbruder.de" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
};
|
2023-10-04 15:15:54 +02:00
|
|
|
}
|