summaryrefslogtreecommitdiff
path: root/config/services/web/quentin/default.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2026-11-29 17:24:18 +0100
committerquentin@aristote.fr <quentin@aristote.fr>2026-11-29 17:42:35 +0100
commitce831333a24011d0692f6871047fe74eab9fab8c (patch)
tree9bb971e2afe0a4b22c73274e8b8e8d05d014401d /config/services/web/quentin/default.nix
downloadhermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.gz
hermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.bz2
hermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.xz
initial commit
Diffstat (limited to 'config/services/web/quentin/default.nix')
-rw-r--r--config/services/web/quentin/default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/services/web/quentin/default.nix b/config/services/web/quentin/default.nix
new file mode 100644
index 0000000..7194190
--- /dev/null
+++ b/config/services/web/quentin/default.nix
@@ -0,0 +1,20 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}: {
+ services.nginx.virtualHosts.quentin = {
+ serverName = "quentin.${config.networking.domain}";
+ locations."/".root = "${pkgs.personal.webpage}";
+ forceSSL = true;
+ enableACME = true;
+ extraConfig = ''
+ add_header Cache-Control no-cache;
+ add_header Content-Security-Policy "default-src 'none'; form-action 'none'; frame-ancestors 'none'; font-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline';";
+ '';
+ };
+
+ # automatically fetch (non-structural) website updates when updating the system
+ personal.system.autoUpgrade.autoUpdateInputs = lib.mkOptionDefault ["personal-webpage/data"];
+}