nixos-configuration/hive/thebe/default.nix

35 lines
690 B
Nix
Raw Normal View History

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-10 17:45:12 +00:00
../../services/plausible
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
plausible.enable = true;
postgresql.enable = true;
2024-01-10 16:28:31 +00:00
};
security.acme = {
acceptTerms = true;
defaults.email = "jrpotter2112@gmail.com";
};
system.stateVersion = "23.11";
}