aboutsummaryrefslogtreecommitdiff
path: root/hosts/ganymede/config.nix
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-18 08:10:20 -0600
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-01-18 08:10:20 -0600
commitd6c4bd6d87d31a2c688fb2fcfdb0cb15d8f9163d (patch)
tree07f85b8fac540f7625f90b10ee500a1bc8116ac3 /hosts/ganymede/config.nix
parented2550a41c8429a1d2fe897deb878717c2ebc3d1 (diff)
parent43af7f28b28021932b318964a953463d8dd79372 (diff)
Merge branch 'main' into wg
Diffstat (limited to 'hosts/ganymede/config.nix')
-rw-r--r--hosts/ganymede/config.nix35
1 files changed, 29 insertions, 6 deletions
diff --git a/hosts/ganymede/config.nix b/hosts/ganymede/config.nix
index 297d7c6..f6b3b74 100644
--- a/hosts/ganymede/config.nix
+++ b/hosts/ganymede/config.nix
@@ -1,10 +1,17 @@
-{config, ...}: {
+{config, ...}: let
+ tailscaleIP = "100.100.218.182";
+in {
collinux = {
user.name = "collin";
secrets = {
- "williams-psk".file = ./williams-psk.age;
+ "williams-psk" = {
+ file = ./williams-psk.age;
+ owner = "wpa_supplicant";
+ };
+
"caddy-env".file = ./caddy-env.age;
+ "tsnsrv-authkey".file = ./tsnsrv-authkey.age;
"wg-key".file = ./ganymede-wg-key.age;
};
@@ -52,17 +59,33 @@
gateway = "192.168.50.1";
};
};
- tailscale.enable = true;
- sshd.enable = true;
+ tailscale = {
+ enable = true;
+ tailnet = "collinux.tailnet";
+ };
+ sshd = {
+ enable = true;
+ bind_host = "0.0.0.0";
+ };
};
selfhost = {
- adguard.enable = true;
- forgejo.enable = true;
caddy = {
enable = true;
envFile = config.collinux.secrets."caddy-env".path;
};
+
+ forgejo = {
+ enable = true;
+ bind_host = tailscaleIP;
+ root_url = "ganymede.collinux.tailnet:8010";
+ };
+
+ headscale = {
+ enable = true;
+ root_url = "headscale.williamsfam.us.com";
+ caddy.enable = true;
+ };
};
};
};