From d67190d175eed1196042b972c52090b54f4ccaec Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 7 Feb 2024 18:01:44 +0100 Subject: [PATCH 1/2] feat: init tmate-ssh-server https://tmate.io --- hosts/nachtigall/apps/tmate.nix | 9 +++++++++ hosts/nachtigall/default.nix | 1 + terraform/dns.tf | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 hosts/nachtigall/apps/tmate.nix diff --git a/hosts/nachtigall/apps/tmate.nix b/hosts/nachtigall/apps/tmate.nix new file mode 100644 index 0000000..59018d3 --- /dev/null +++ b/hosts/nachtigall/apps/tmate.nix @@ -0,0 +1,9 @@ +{ ... }: +{ + services.tmate-ssh-server = { + enable = true; + port = 2222; + openFirewall = true; + host = "tmate.pub.solar"; + }; +} diff --git a/hosts/nachtigall/default.nix b/hosts/nachtigall/default.nix index e548482..ea60a16 100644 --- a/hosts/nachtigall/default.nix +++ b/hosts/nachtigall/default.nix @@ -29,6 +29,7 @@ ./apps/prometheus-exporters.nix ./apps/promtail.nix ./apps/searx.nix + ./apps/tmate.nix ./apps/matrix/irc.nix ./apps/matrix/mautrix-telegram.nix diff --git a/terraform/dns.tf b/terraform/dns.tf index 3798a27..60226c0 100644 --- a/terraform/dns.tf +++ b/terraform/dns.tf @@ -115,6 +115,11 @@ resource "namecheap_domain_records" "pub-solar" { type = "CNAME" address = "nachtigall.pub.solar." } + record { + hostname = "tmate" + type = "CNAME" + address = "nachtigall.pub.solar." + } record { hostname = "www" type = "CNAME" -- 2.44.2 From 842ec945f449c63421723a8ab705050075c3d572 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 7 Feb 2024 19:02:04 +0100 Subject: [PATCH 2/2] forgejo: appName option has been renamed trace: warning: The option `services.forgejo.appName' defined in `/nix/store/z68x68rbw9sg4d7mcjrjd6aq598rmrwf-source/hosts/nachtigall/apps/forgejo.nix' has been renamed to `services.forgejo.settings.DEFAULT.APP_NAME'. --- hosts/nachtigall/apps/forgejo.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/nachtigall/apps/forgejo.nix b/hosts/nachtigall/apps/forgejo.nix index e455706..fdc941f 100644 --- a/hosts/nachtigall/apps/forgejo.nix +++ b/hosts/nachtigall/apps/forgejo.nix @@ -46,7 +46,6 @@ user = "gitea"; group = "gitea"; package = pkgs.forgejo; - appName = "pub.solar git server"; database = { type = "postgres"; passwordFile = config.age.secrets.forgejo-database-password.path; @@ -57,6 +56,8 @@ lfs.enable = true; mailerPasswordFile = config.age.secrets.forgejo-mailer-password.path; settings = { + DEFAULT.APP_NAME = "pub.solar git server"; + server = { ROOT_URL = "https://git.pub.solar"; DOMAIN = "git.pub.solar"; -- 2.44.2