rename patches directory to overlays

This commit is contained in:
Noah Masur 2023-02-20 20:00:54 -05:00
parent 6cd22bc7ce
commit 86aa02aae4
5 changed files with 9 additions and 11 deletions

View File

@ -112,7 +112,8 @@
overlays = [ overlays = [
inputs.nur.overlay inputs.nur.overlay
inputs.nix2vim.overlay inputs.nix2vim.overlay
(import ./modules/neovim/plugins-overlay.nix inputs) (import ./overlays/neovim-plugins.nix inputs)
(import ./overlays/calibre-web.nix)
]; ];
# System types to support. # System types to support.

View File

@ -20,16 +20,6 @@
}; };
}; };
# Fix: https://github.com/janeczku/calibre-web/issues/2422
nixpkgs.overlays = [
(final: prev: {
calibre-web = prev.calibre-web.overrideAttrs (old: {
patches = (old.patches or [ ])
++ [ ../../patches/calibre-web-cloudflare.patch ];
});
})
];
caddy.routes = [{ caddy.routes = [{
match = [{ host = [ config.bookServer ]; }]; match = [{ host = [ config.bookServer ]; }];
handle = [{ handle = [{

7
overlays/calibre-web.nix Normal file
View File

@ -0,0 +1,7 @@
# Fix: https://github.com/janeczku/calibre-web/issues/2422
final: prev: {
calibre-web = prev.calibre-web.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ ./calibre-web-cloudflare.patch ];
});
}