From e221636b45dca74bc56720a28257b74d98c342c2 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Thu, 9 May 2024 15:29:18 +0200 Subject: [PATCH] Set up tmpfile rule for creating microbin data directory Also update the dns file --- hosts/nixos/lapetus/services/microbin.nix | 5 +++++ scripts/dns/dns.txt | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hosts/nixos/lapetus/services/microbin.nix b/hosts/nixos/lapetus/services/microbin.nix index 629432a..384011c 100644 --- a/hosts/nixos/lapetus/services/microbin.nix +++ b/hosts/nixos/lapetus/services/microbin.nix @@ -11,6 +11,8 @@ in services.microbin = { enable = true; dataDir = "/persist/state/var/lib/microbin"; + + # {{{ Settings settings = { # High level settings MICROBIN_ADMIN_USERNAME = "prescientmoon"; @@ -27,5 +29,8 @@ in MICROBIN_HIDE_HEADER = "true"; MICROBIN_HIDE_LOGO = "true"; }; + # }}} }; + + systemd.tmpfiles.rules = [ "d ${config.services.microbin.dataDir}" ]; } diff --git a/scripts/dns/dns.txt b/scripts/dns/dns.txt index 128c818..cfe9b50 100644 --- a/scripts/dns/dns.txt +++ b/scripts/dns/dns.txt @@ -4,7 +4,7 @@ $TTL 600 ; expiration time in ms ; ========================================================================================== ; Main dns records -; Actual (internal, mostly) IPs +; Actual (tailscale internal) IPs lapetus.moonythm.dev IN A 100.93.136.59 lapetus.moonythm.dev IN AAAA fd7a:115c:a1e0::e75d:883b @@ -28,9 +28,14 @@ search IN CNAME lapetus.moonythm.dev. smos IN CNAME lapetus.moonythm.dev. warden IN CNAME lapetus.moonythm.dev. yt IN CNAME lapetus.moonythm.dev. - +diptime IN CNAME lapetus.moonythm.dev. *.irc IN CNAME irc.moonythm.dev. -diptime IN CNAME real.lapetus.moonythm.dev. + +; Tunnel used by lapetus +tunnel.lapetus IN CNAME 347d9ead-a523-4f8b-bca7-3066e31e2952.cfargotunnel.com + +; lapetus services using cloudflare tunnels +bin IN CNAME tunnel.lapetus.moonythm.dev. ; ========================================================================================== ; Migadu mail setup