nixos-config/machines/fuuko/configuration.nix

40 lines
805 B
Nix

{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../modules
../../users/simon
./services/grafana.nix
./services/media.nix
./services/prometheus.nix
./services/scan.nix
./services/torrent.nix
];
sbruder = {
wireguard.home.enable = true;
nginx.hardening.enable = true;
};
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."fuuko.home.sbruder.de" = {
enableACME = true;
forceSSL = true;
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
users.users.nginx.extraGroups = [ "keys" ];
networking.hostName = "fuuko";
system.stateVersion = "20.09";
}