devshells: add website devshell

This commit is contained in:
ooks-io 2024-10-31 17:27:56 +11:00
parent a9280b78cd
commit f1ebe05f1d
3 changed files with 22 additions and 0 deletions

View file

@ -6,5 +6,6 @@
./keys.nix ./keys.nix
./pkgs ./pkgs
./images.nix ./images.nix
./devshells
]; ];
} }

View file

@ -0,0 +1,7 @@
{
perSystem = {pkgs, ...}: {
devShells = {
website = pkgs.mkShellNoCC (import ./website.nix {inherit pkgs;});
};
};
}

View file

@ -0,0 +1,14 @@
{pkgs, ...}: let
inherit (builtins) attrValues;
in {
name = "ooknet website devshell";
packages = attrValues {
inherit (pkgs) zola;
};
shellHook = ''
echo "Entering website devshell";
cd $WEBSITE/src
echo "Serving website"
zola serve
'';
}