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:
25
flake.nix
Normal file
25
flake.nix
Normal 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]))
|
||||
];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user