cloudflared for nixnas

This commit is contained in:
Clayton Hickey 2026-02-08 19:27:12 -05:00
parent 6061ba3288
commit 0996300740

15
cloudflared.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
{
config = lib.mkMerge [
(lib.mkIf (config.networking.hostName == "nixnas") {
services.cloudflared = {
enable = true;
certificateFile = "/Block/cloudflare/cert.pem";
tunnels.mine = {
credentialsFile = "/Block/cloudflare/2d530440-2db8-491a-bb61-7941315d4cb9.json";
default = "http_status:404";
};
};
})
];
}