mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 07:03:17 +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-XwZ0Hkeh2FpQL/fInaSq+/3rCLmQRVvwBM0Y1G1FZNU=";
 | 
						|
  }
 |