devshells: add website devshell
This commit is contained in:
parent
a9280b78cd
commit
f1ebe05f1d
3 changed files with 22 additions and 0 deletions
|
|
@ -6,5 +6,6 @@
|
||||||
./keys.nix
|
./keys.nix
|
||||||
./pkgs
|
./pkgs
|
||||||
./images.nix
|
./images.nix
|
||||||
|
./devshells
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
7
outputs/devshells/default.nix
Normal file
7
outputs/devshells/default.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
perSystem = {pkgs, ...}: {
|
||||||
|
devShells = {
|
||||||
|
website = pkgs.mkShellNoCC (import ./website.nix {inherit pkgs;});
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
14
outputs/devshells/website.nix
Normal file
14
outputs/devshells/website.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue