aboutsummaryrefslogtreecommitdiff
path: root/modules/services/site.nix
blob: 2c80b9b38e57e1e967f31a97d3a4e5c90f283112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  flake.modules.nixos.site =
    {
      config,
      inputs,
      ...
    }:
    {
      /*
			imports = [
				inputs.site.nixosModules.default
			];

			services.site = {
				enable = true;
				domain = "schererleander.de";
				sslCertificate = config.sops.secrets."cert_fullchain".path;
				sslCertificateKey = config.sops.secrets."cert_private".path;
			};
      */

      services.nginx.virtualHosts."schererleander.de" = {
        forceSSL = true;
        sslCertificate = config.sops.secrets."cert_fullchain".path;
        sslCertificateKey = config.sops.secrets."cert_private".path;
        locations."/".return = "301 https://github.com/schererleander";
      };
    };
}