with import <nixpkgs> {};
let 
    themachine = { config, pkgs, ... }:
    {
        imports = [ 
          ./nix/common.nix
          ./nix/mysql.nix
          ./nix/nginx.nix
          ./nix/php.nix
        ]; 

        networking.firewall.allowedTCPPorts = [ 22 80 443 31337 ];
        time.timeZone = "America/Chicago";
      
        deployment.targetEnv = "digitalOcean";
        deployment.digitalOcean.enableIpv6 = true;
        deployment.digitalOcean.region = "sfo2";
        deployment.digitalOcean.size = "s-1vcpu-2gb"; 

    };
in
{
    network.description = "The DO server for all my needs";
    network.enableRollback = true;
    resources.sshKeyPairs.ssh-key = {};

    # one = themachine;
    # two = themachine;
    themachine = themachine;

}