Initial Setup

Tooling:
  nix/direnv to ensure dependencies are present
  jinja-based templating to avoid duplication of common sections of pages
    (header and footer, primarily)
  auto-rebuilding server for rapid iteration
This commit is contained in:
bluepython508
2024-03-05 09:39:03 +00:00
commit d6ef3d511c
8 changed files with 104 additions and 0 deletions

25
flake.nix Normal file
View File

@@ -0,0 +1,25 @@
{
outputs = {
nixpkgs,
systems,
self,
}: let
eachSystem = f:
nixpkgs.lib.genAttrs (import systems) (system:
f {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
});
in {
devShells = eachSystem ({pkgs, ...}: {
default = pkgs.mkShell {
packages = with pkgs; [
just
simple-http-server
watchexec
(python3.withPackages (ps: with ps; [jinja2]))
];
};
});
};
}