feat(rpi4): setup acme and cfdyndns

This commit is contained in:
Felix Schröter 2020-10-03 16:23:36 +02:00
parent b1ea42c5a2
commit 66321a27b8
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
3 changed files with 114 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./system/nix.nix
./system/i18n.nix
./services/jellyfin.nix
./modules/cfdyndns.nix
];
nixpkgs.config.allowUnfree = true;
@ -22,6 +23,24 @@
];
hardware.enableAllFirmware = true;
networking.domain = "home.felschr.com";
networking.firewall.allowedTCPPorts = [
80 443
];
security.acme = {
acceptTerms = true;
email = "felschr@pm.me";
};
services.custom.cfdyndns = {
enable = true;
email = "felschr@pm.me";
apikeyFile = "/etc/nixos/secrets/cfdyndns-apikey";
records = [ "home.felschr.com" ];
};
programs.zsh.enable = true;
services.openssh.enable = true;