2024-01-10 17:45:12 +00:00
|
|
|
{ sops-nix, lib, ... }:
|
2024-01-10 16:28:31 +00:00
|
|
|
{
|
|
|
|
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
|
2024-01-10 17:45:12 +00:00
|
|
|
sops-nix.nixosModules.sops
|
2024-01-10 16:28:31 +00:00
|
|
|
../../digital-ocean/configuration.nix
|
2024-01-18 13:21:11 +00:00
|
|
|
../../services/boardwise
|
|
|
|
../../services/forgejo.nix
|
2024-01-10 16:28:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2024-01-10 17:45:12 +00:00
|
|
|
postgresql.enable = true;
|
2024-01-10 16:28:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "jrpotter2112@gmail.com";
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|