35 lines
692 B
Nix
35 lines
692 B
Nix
{ sops-nix, lib, ... }:
|
|
{
|
|
imports = lib.optional (builtins.pathExists ./do-userdata.nix) ./do-userdata.nix ++ [
|
|
sops-nix.nixosModules.sops
|
|
../../digital-ocean/configuration.nix
|
|
../../services/boardwise
|
|
../../services/forgejo.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;
|
|
postgresql.enable = true;
|
|
};
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults.email = "jrpotter2112@gmail.com";
|
|
};
|
|
|
|
system.stateVersion = "23.11";
|
|
}
|