diff --git a/content/posts/static-site-with-nix-and-caddy/index.md b/content/posts/static-site-with-nix-and-caddy/index.md index 7259406..59eeffa 100644 --- a/content/posts/static-site-with-nix-and-caddy/index.md +++ b/content/posts/static-site-with-nix-and-caddy/index.md @@ -415,6 +415,9 @@ Now you should be able to use a command like this on a Docker-friendly host, and nix run .#deploy ``` +### Future Directions +There is just a touch of boilerplate left in `flake.nix`, required to thread the correct nixpkgs context through (`callPackage`, passing `site` and `dockerImage` explicitly). We could easily package that up in a `flake-module.nix` and add it to the `imports` argument of `flake-parts.lib.mkFlake`. I'll probably try to make another blog post out of the process of packaging up the Nix glue, so keep your eyes peeled! + Thanks for reading! ## Acknowledgements diff --git a/flake.nix b/flake.nix index 23ca1fa..84a9317 100644 --- a/flake.nix +++ b/flake.nix @@ -17,7 +17,7 @@ systems = inputs.nixpkgs.lib.systems.flakeExposed; perSystem = { config, self', inputs', pkgs, system, ... }: let - # TODO: move these to a flake-modules + # TODO: move these to a flake-module inherit (pkgs.callPackage ./nix { }) container deploy fonts optimize-images themes; inherit (fonts) copyFonts linkFonts; inherit (themes {