Skip to content

Commit

Permalink
feat: try new caddy package
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaxbits committed Nov 20, 2023
1 parent cddb9c1 commit a3bc5be
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 2 additions & 0 deletions components/caddy/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.components.caddy;
Expand Down Expand Up @@ -28,6 +29,7 @@ in {

config = lib.mkMerge [
{services.caddy.enable = cfg.enable;}
{services.caddy.package = pkgs.cloudflare-caddy;}
monitorConfig
];
}
14 changes: 7 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# custom pkgs
caddy = {
url = "github:ajaxbits/nixos-caddy-patched";
url = "github:burmudar/nix-cloudflare-caddy";
inputs.nixpkgs.follows = "nixpkgs";
};
};
Expand Down Expand Up @@ -60,9 +60,7 @@
pkgs = import nixpkgs {
inherit system;
overlays = [
(_self: super: {
caddy-patched = caddy.packages.${system}.caddy;
})
caddy.overlay
];
};
pkgsUnfree = unfree.legacyPackages.${system};
Expand Down

0 comments on commit a3bc5be

Please sign in to comment.