Simon Bruder
26d85e97aa
This avoids boilerplate code for displaying the imprint on the fqdn of the machine.
33 lines
643 B
Nix
33 lines
643 B
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../../modules
|
|
];
|
|
|
|
sbruder = {
|
|
nginx.hardening.enable = true;
|
|
wireguard.home.enable = true;
|
|
infovhost.enable = true;
|
|
};
|
|
|
|
networking.hostName = "nazuna";
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
services.nginx.enable = true;
|
|
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;
|
|
};
|
|
}
|