feat: add static website

This commit is contained in:
Moritz Böhme 2025-05-16 09:57:24 +02:00
parent b714d906d8
commit d4e8bde4cd
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
9 changed files with 110 additions and 11 deletions

View file

@ -57,6 +57,9 @@
# Firefox user.js
arkenfox-userjs.url = "github:arkenfox/user.js";
arkenfox-userjs.flake = false;
zola-theme.url = "github:Speyll/anemone";
zola-theme.flake = false;
};
outputs = inputs @ {flake-parts, ...}:
@ -78,9 +81,23 @@
pkgs,
...
}: {
devShells.default = pkgs.mkShell {
inherit (config.pre-commit.devShell) shellHook nativeBuildInputs;
packages = [inputs'.clan-core.packages.clan-cli pkgs.alejandra];
devShells = rec {
default = pkgs.mkShell {
inherit (config.pre-commit.devShell) shellHook nativeBuildInputs;
packages = [inputs'.clan-core.packages.clan-cli pkgs.alejandra];
};
zola = let
theme = inputs.zola-theme;
themeName = (builtins.fromTOML (builtins.readFile "${theme}/theme.toml")).name;
in
pkgs.mkShell {
inputsFrom = [default];
packages = [pkgs.zola];
shellHook = ''
mkdir themes
ln -s ${inputs.zola-theme} themes/${themeName}
'';
};
};
pre-commit.settings.hooks = {
alejandra.enable = true;