mirror of
https://github.com/nmasur/dotfiles
synced 2025-10-12 22:23:16 +00:00
23 lines
514 B
Nix
23 lines
514 B
Nix
# Caddy with Cloudflare DNS
|
|
|
|
{
|
|
pkgs,
|
|
fetchFromGitHub,
|
|
...
|
|
}:
|
|
|
|
# Maintain a static version so that the plugin hash doesn't keep breaking
|
|
(pkgs.caddy.overrideAttrs rec {
|
|
version = "2.10.2";
|
|
src = fetchFromGitHub {
|
|
owner = "caddyserver";
|
|
repo = "caddy";
|
|
tag = "v${version}";
|
|
hash = "sha256-KvikafRYPFZ0xCXqDdji1rxlkThEDEOHycK8GP5e8vk=";
|
|
};
|
|
}).withPlugins
|
|
{
|
|
plugins = [ "github.com/caddy-dns/cloudflare@v0.2.1" ];
|
|
hash = "sha256-AcWko5513hO8I0lvbCLqVbM1eWegAhoM0J0qXoWL/vI=";
|
|
}
|