feat: add static website
This commit is contained in:
parent
b714d906d8
commit
d4e8bde4cd
9 changed files with 110 additions and 11 deletions
23
flake.nix
23
flake.nix
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue