Add future directions section to post

pull/1/head
mat ess 2022-08-28 14:28:27 -04:00
parent d74eb1df58
commit 310a19bca5
2 changed files with 4 additions and 1 deletions

View File

@ -415,6 +415,9 @@ Now you should be able to use a command like this on a Docker-friendly host, and
nix run .#deploy 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! Thanks for reading!
## Acknowledgements ## Acknowledgements

View File

@ -17,7 +17,7 @@
systems = inputs.nixpkgs.lib.systems.flakeExposed; systems = inputs.nixpkgs.lib.systems.flakeExposed;
perSystem = { config, self', inputs', pkgs, system, ... }: perSystem = { config, self', inputs', pkgs, system, ... }:
let 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 (pkgs.callPackage ./nix { }) container deploy fonts optimize-images themes;
inherit (fonts) copyFonts linkFonts; inherit (fonts) copyFonts linkFonts;
inherit (themes { inherit (themes {