From 254b591a80d519c3111ed3cefa328f774678005d Mon Sep 17 00:00:00 2001 From: Ethan Simmons Date: Fri, 2 Aug 2024 12:30:46 -0500 Subject: [PATCH] Update diphda --- flake.nix | 2 +- hosts/diphda/system.nix | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 52d1686..fb9ad1e 100644 --- a/flake.nix +++ b/flake.nix @@ -166,7 +166,7 @@ networking = { firewall = { - allowedTCPPorts = [ 80 443 4533 7878 8096 8089 8902 8989 9000 9696 11112 24454 25565 25600 ]; + allowedTCPPorts = [ 80 443 4533 7878 8080 8081 8083 8089 8096 8181 8787 8902 8989 9000 9696 11112 24454 25565 25600 ]; }; }; }; diff --git a/hosts/diphda/system.nix b/hosts/diphda/system.nix index 0a5163e..148a12e 100644 --- a/hosts/diphda/system.nix +++ b/hosts/diphda/system.nix @@ -70,6 +70,17 @@ }; }; + security.acme = { + acceptTerms = true; + certs."download.simmer505.com" = { + dnsProvider = "porkbun"; + environmentFile = "${pkgs.writeText "porkbun-creds" '' + INWX_USERNAME=${pkgs.readFile} + INWX_PASSWORD=${pkgs.readFile} + ''}"; + }; + }; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;