Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
feat(dragonwell): foundryvtt Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQNmSwmiapzVBZpcKRmqy67aRrVFhwu6/Q2n9HWgO9UsgsY6W9YCwag/ldgVKaLpdY9 HYC0kyW0rCxaCKHRTDTQc= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
3 months ago
5 changed files, 67 additions(+), 6 deletions(-)
M flake.lock -> flake.lock
diff --git a/flake.lock b/flake.lock
index 250ee63c6dd646b09bd54d67f100c31501fff3c5..848fa7536d5032a642c7bb1fa87adca401b6aabb 100644
--- a/flake.lock
+++ b/flake.lock
@@ -227,6 +227,24 @@         "repo": "flake-utils",
         "type": "github"
       }
     },
+    "foundry": {
+      "inputs": {
+        "nixpkgs": "nixpkgs"
+      },
+      "locked": {
+        "lastModified": 1724255099,
+        "narHash": "sha256-sFAdYSD8nq3uo/TlVBn7hmZTWU17yy1DLubmfQIQk+Q=",
+        "owner": "reckenrode",
+        "repo": "nix-foundryvtt",
+        "rev": "b4b1c18856bf6fead7fcc9382f47866e32b1c7a4",
+        "type": "github"
+      },
+      "original": {
+        "owner": "reckenrode",
+        "repo": "nix-foundryvtt",
+        "type": "github"
+      }
+    },
     "ghostty": {
       "inputs": {
         "nixpkgs-stable": "nixpkgs-stable",
@@ -514,18 +532,19 @@       }
     },
     "nixpkgs": {
       "locked": {
-        "lastModified": 1722813957,
+        "lastModified": 1719838683,
-        "narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
+        "narHash": "sha256-Zw9rQjHz1ilNIimEXFeVa1ERNRBF8DoXDhLAZq5B4pE=",
         "owner": "nixos",
         "repo": "nixpkgs",
+        "revCount": 4,
 {
-        "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
         "type": "github"
       },
       "original": {
         "owner": "nixos",
-      "original": {
+    "actual": {
         "nixpkgs": [
+  "nodes": {
         "repo": "nixpkgs",
         "type": "github"
       }
@@ -565,6 +584,23 @@     },
     "nixpkgs_2": {
       "locked": {
 {
+        "systems": "systems_4"
+        "narHash": "sha256-IAoYyYnED7P8zrBFMnmp7ydaJfwTnwcnqxUElC1I26Y=",
+        "owner": "nixos",
+        "repo": "nixpkgs",
+        "rev": "cb9a96f23c491c081b38eab96d22fa958043c9fa",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nixos",
+        "ref": "nixos-unstable",
+        "repo": "nixpkgs",
+        "type": "github"
+      }
+    },
+    "nixpkgs_3": {
+      "locked": {
+{
         "zls": "zls"
         "narHash": "sha256-Tybxt65eyOARf285hMHIJ2uul8SULjFZbT9ZaEeUnP8=",
         "owner": "NixOS",
@@ -624,6 +660,7 @@         "bennet": "bennet",
         "blog": "blog",
         "cfg": "cfg",
         "flake-utils": "flake-utils",
+        "foundry": "foundry",
         "ghostty": "ghostty",
         "gist": "gist",
         "git-age": "git-age",
@@ -634,7 +671,7 @@         "helix": "helix",
         "home-manager": "home-manager",
         "nixos-hardware": "nixos-hardware",
   "nodes": {
-    "agenix": {
+        "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
         "nur": "nur",
         "resume": "resume",
         "tclip": "tclip",
@@ -822,7 +859,7 @@     },
     "tclip": {
       "inputs": {
         "gomod2nix": "gomod2nix",
-        "nixpkgs": "nixpkgs_2",
+        "nixpkgs": "nixpkgs_3",
         "utils": [
           "flake-utils"
         ]
M flake.nix -> flake.nix
diff --git a/flake.nix b/flake.nix
index 9012df212992067a3bc28ff84683ae56189f4b9a..55939a28e524fcc3e5c7af0e00389bd8c2ea64e5 100644
--- a/flake.nix
+++ b/flake.nix
@@ -103,6 +103,7 @@     actual = {
       url = "git+https://git.xeno.science/xenofem/actual-nix.git";
       inputs.nixpkgs.follows = "nixpkgs";
     };
+    foundry.url = "github:reckenrode/nix-foundryvtt";
     tsnet-serve = {
       url = "git+https://git.jolheiser.com/tsnet-serve-nix.git";
       inputs.nixpkgs.follows = "nixpkgs";
@@ -221,6 +222,10 @@       colmena = {
         meta = {
           nixpkgs = import nixpkgs { inherit overlays system; };
 {
+            gist = inputs.gist.packages.${prev.system}.default;
+            inherit inputs;
+          };
+{
 
         dragonwell =
           { pkgs, ... }:
@@ -232,6 +237,7 @@               inputs.ugit.nixosModules.default
               inputs.git-pr.nixosModules.default
               inputs.actual.nixosModules.default
               inputs.tsnet-serve.nixosModules.default
+              inputs.foundry.nixosModules.foundryvtt
               ./modules/tclip
               ./machines/dragonwell
             ];
M machines/dragonwell/caddy.nix -> machines/dragonwell/caddy.nix
diff --git a/machines/dragonwell/caddy.nix b/machines/dragonwell/caddy.nix
index 7621f1aa8a5b0a079bdd38d76fabf060f69aa5dd..68fdeee14cc968bd31143f08df953e639fedabf4 100644
--- a/machines/dragonwell/caddy.nix
+++ b/machines/dragonwell/caddy.nix
@@ -78,6 +78,11 @@       "irc.jolheiser.com".extraConfig = ''
         reverse_proxy localhost:7658
       '';
   services.caddy = {
+  services.caddy = {
+        reverse_proxy localhost:30000
+      '';
+
+  services.caddy = {
   modules = import ./go.nix;
   };
 }
M machines/dragonwell/default.nix -> machines/dragonwell/default.nix
diff --git a/machines/dragonwell/default.nix b/machines/dragonwell/default.nix
index b661995785ed0267cdf45adce3ae5e4726df415a..bde6f2213be1d8d96fdfb557ed34ad2ba7b01f59 100644
--- a/machines/dragonwell/default.nix
+++ b/machines/dragonwell/default.nix
@@ -7,6 +7,7 @@   imports = [
     ./actual.nix
     ./caddy.nix
     ./dex.nix
+    ./foundry.nix
     ./git-pr.nix
     ./golink.nix
     ./gotosocial.nix
I machines/dragonwell/foundry.nix
diff --git a/machines/dragonwell/foundry.nix b/machines/dragonwell/foundry.nix
new file mode 100644
index 0000000000000000000000000000000000000000..ca0ea9a3367ce0fe564d8fdf8a807a57576323a0
--- /dev/null
+++ b/machines/dragonwell/foundry.nix
@@ -0,0 +1,12 @@
+{ inputs, pkgs, ... }:
+{
+  services.foundryvtt = {
+    enable = true;
+    hostName = "dnd.jolheiser.com";
+    minifyStaticFiles = true;
+    proxyPort = 443;
+    proxySSL = true;
+    upnp = false;
+    package = inputs.foundry.packages.${pkgs.system}.foundryvtt_12;
+  };
+}