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"; +}