summaryrefslogtreecommitdiff
path: root/configuration.nix
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-05-16 14:02:30 -0500
committerMarc Coquand <marc@mccd.space>2024-05-16 14:02:30 -0500
commit72e03e6d85aa223810ff1d4fb0684d51e7b3f4f5 (patch)
treecd09489c6c3363780cf32cf5a8108c80cb322123 /configuration.nix
parent44b0c4efed67bf4f073359482681ebd69cb6f7bb (diff)
downloadnixos-72e03e6d85aa223810ff1d4fb0684d51e7b3f4f5.tar.gz
nixos-72e03e6d85aa223810ff1d4fb0684d51e7b3f4f5.tar.bz2
nixos-72e03e6d85aa223810ff1d4fb0684d51e7b3f4f5.zip
Add blobs
Diffstat (limited to '')
-rw-r--r--configuration.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/configuration.nix b/configuration.nix
index 0ddc4c8..95668c8 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -1,6 +1,7 @@
{ pkgs, inputs, ... }:
let
cgitCss = pkgs.writeText "cgit.css" (builtins.readFile ./cgit.css);
+ blobs = pkgs.readDir "blobs"
in {
imports = [
./hardware-configuration.nix
@@ -12,7 +13,8 @@ in {
networking.nat.externalInterface = "eth0";
systemd.tmpfiles.rules = [
- "d /mnt/ 700 root root -"
+ "d /mnt/ 700 root root -";
+ "d /www/data/releases/ 700 nginx nginx"
];
containers.ann = {
@@ -144,6 +146,14 @@ in {
};
+ virtualHosts."blobs.mccd.space" = {
+ forceSSL = true;
+ enableACME = true;
+ locations."/" = {
+ root = "${blobs}";
+ };
+ };
+
virtualHosts."rss.mccd.space" = {
forceSSL = true;
enableACME = true;