2023-12-23 21:29:18 +00:00
|
|
|
{ sops-nix, lib, ... }:
|
2023-12-10 22:15:42 +00:00
|
|
|
{
|
|
|
|
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
|
|
|
|
sops-nix.nixosModules.sops
|
2023-12-23 21:29:18 +00:00
|
|
|
../../digital-ocean/configuration.nix
|
|
|
|
../../services/boardwise
|
|
|
|
../../services/forgejo.nix
|
2023-12-10 22:15:42 +00:00
|
|
|
];
|
|
|
|
|
2023-12-12 13:44:45 +00:00
|
|
|
deployment.targetHost = "143.198.142.171";
|
2023-12-10 22:15:42 +00:00
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "phobos";
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ 80 443 ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-12-12 14:35:29 +00:00
|
|
|
programs.mosh.enable = true;
|
|
|
|
|
2023-12-23 21:27:04 +00:00
|
|
|
services = {
|
2023-12-23 21:29:18 +00:00
|
|
|
nginx.enable = true;
|
2023-12-23 21:27:04 +00:00
|
|
|
openssh.enable = true;
|
2023-12-23 21:29:18 +00:00
|
|
|
postgresql.enable = true;
|
2023-12-12 16:07:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "jrpotter2112@gmail.com";
|
|
|
|
};
|
2023-12-10 22:15:42 +00:00
|
|
|
|
2023-12-23 21:07:35 +00:00
|
|
|
system.stateVersion = "23.11";
|
2023-12-10 22:15:42 +00:00
|
|
|
}
|