From 9d3a71f4459c3c37164cace11ed5d53861f24596 Mon Sep 17 00:00:00 2001 From: OCbwoy3 Date: Thu, 21 Aug 2025 13:22:52 +0300 Subject: [PATCH] cloudflared ssh? --- hosts/server/configuration.nix | 21 +++++++++++++++++++++ hosts/server/modules/atproto-pds.nix | 4 ++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 1339bd7..a7ea394 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -10,6 +10,27 @@ # gcc. shit breaks. wtf environment.sessionVariables.LD_LIBRARY_PATH = "${pkgs.gcc15}/lib"; + systemd.services.ocbwoy3-start-pm2 = { + enable = true; + description = "Start PM2"; + after = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.pm2}/bin/pm2 ping"; + User = "ocbwoy3"; + Group = "wheel"; + Restart = "on-failure"; + RestartSec = "5s"; + }; + }; + + + services.openssh.settings = { + PubkeyAuthentication = "yes"; + TrustedUserCAKeys = "/etc/ssh/ca.pub"; + }; + services.openssh.enable = lib.mkForce true; environment.systemPackages = with pkgs; [ diff --git a/hosts/server/modules/atproto-pds.nix b/hosts/server/modules/atproto-pds.nix index c99bde7..53ee46f 100644 --- a/hosts/server/modules/atproto-pds.nix +++ b/hosts/server/modules/atproto-pds.nix @@ -13,8 +13,8 @@ settings = { PDS_CRAWLERS = "https://bsky.network"; LOG_ENABLED = "true"; - PDS_HOSTNAME = "pds.darktru.win"; - PDS_VERSION = "i use nix btw"; + PDS_HOSTNAME = "pds.ocbwoy3.dev"; + PDS_VERSION = "\"ATProto PDS v69420\""; PDS_DID_PLC_URL = "https://plc.directory"; PDS_CONTACT_EMAIL_ADDRESS = "ocbwoy3@ocbwoy3.dev"; PDS_PRIVACY_POLICY_URL = "https://ocbwoy3.dev";