Add deimos remote. Install `blog.jrpotter.com`.

main
Joshua Potter 2023-12-14 08:37:43 -07:00
parent 25ccfb1d5a
commit 96c8f6b056
3 changed files with 49 additions and 1 deletions

View File

@ -53,6 +53,9 @@
framework = {
inherit (stoat) stateVersion home-manager;
};
deimos = {
inherit (tapir) stateVersion;
};
phobos = {
inherit (tapir) stateVersion sops-nix;
};
@ -74,6 +77,7 @@
# Remote machines. Deploy using `colmena apply`
deimos.imports = [ ./hive/deimos ];
phobos.imports = [ ./hive/phobos ];
titan.imports = [ ./hive/titan ];
};

44
hive/deimos/default.nix Normal file
View File

@ -0,0 +1,44 @@
{ system, stateVersion, lib, ... }:
let
blog = builtins.getFlake
"github:jrpotter/blog/689107113f248cc2cad2a53d9f7d32be484c9060";
in
{
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
../../digital-ocean/configuration.nix
];
deployment.targetHost = "24.199.110.222";
networking = {
hostName = "deimos";
firewall = {
enable = true;
allowedTCPPorts = [ 80 443 ];
};
};
programs.mosh.enable = true;
services.openssh.enable = true;
security.acme = {
acceptTerms = true;
defaults.email = "jrpotter2112@gmail.com";
};
services.nginx = {
enable = true;
virtualHosts = {
"blog.jrpotter.com" = {
forceSSL = true;
enableACME = true;
locations."/" = {
root = blog.packages.${system}.app;
};
};
};
};
system.stateVersion = stateVersion;
}

View File

@ -7,7 +7,7 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
deployment.targetHost = "143.110.158.6";
deployment.targetHost = null;
networking.hostName = "titan";