nixos-config/machines/nazuna/configuration.nix

37 lines
759 B
Nix
Raw Normal View History

# 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;
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
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
}