summaryrefslogtreecommitdiff
path: root/config/services/web/quentin/default.nix
blob: 5e76d791070d5d79806df00fdc024c1f1a4be949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, pkgs, ... }:

{
  services.nginx.virtualHosts.quentin = {
    serverName = "quentin.${config.networking.domain}";
    locations."/".root = "${pkgs.personal.webpage.override {
      line-awesome-css =
        pkgs.personal.line-awesome-css.override { fontDisplay = "swap"; };
    }}";
    forceSSL = true;
    enableACME = true;
    extraConfig = ''
      add_header Cache-Control no-cache;
    '';
  };

  # automatically fetch (non-structural) website updates when updating the system
  system.autoUpgrade.flags = [ "--update-input" "personal-webpage/data" ];
}