From d2921e0985553e518ba3cf911c12cd434c653860 Mon Sep 17 00:00:00 2001 From: Joshua Potter Date: Wed, 10 Jan 2024 09:28:31 -0700 Subject: [PATCH] Register thebe machine. --- flake.nix | 5 +++++ hive/thebe/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 hive/thebe/default.nix diff --git a/flake.nix b/flake.nix index 1ee7c3b..4ab9956 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,7 @@ framework = tapir.pkgs; deimos = tapir.pkgs; phobos = tapir.pkgs; + thebe = tapir.pkgs; }; nodeSpecialArgs = { framework = { @@ -45,6 +46,9 @@ phobos = { inherit (tapir) sops-nix; }; + thebe = { + inherit (tapir); + }; }; }; @@ -62,6 +66,7 @@ deimos.imports = [ ./hive/deimos ]; phobos.imports = [ ./hive/phobos ]; + thebe.imports = [ ./hive/thebe ]; }; packages.${system}.digital-ocean = { diff --git a/hive/thebe/default.nix b/hive/thebe/default.nix new file mode 100644 index 0000000..10c8f76 --- /dev/null +++ b/hive/thebe/default.nix @@ -0,0 +1,30 @@ +{ lib, ... }: +{ + imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [ + ../../digital-ocean/configuration.nix + ]; + + deployment.targetHost = "64.23.168.148"; + + networking = { + hostName = "thebe"; + firewall = { + enable = true; + allowedTCPPorts = [ 80 443 ]; + }; + }; + + programs.mosh.enable = true; + + services = { + nginx.enable = true; + openssh.enable = true; + }; + + security.acme = { + acceptTerms = true; + defaults.email = "jrpotter2112@gmail.com"; + }; + + system.stateVersion = "23.11"; +}