33 lines
757 B
Nix
33 lines
757 B
Nix
|
{
|
||
|
description = "The website for Moxxy";
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let
|
||
|
pkgs = import nixpkgs {
|
||
|
inherit system;
|
||
|
};
|
||
|
|
||
|
tailwindWithTypography = (pkgs.nodePackages.tailwindcss.overrideAttrs (old: {
|
||
|
plugins = [
|
||
|
pkgs.nodePackages."@tailwindcss/typography"
|
||
|
];
|
||
|
}));
|
||
|
in {
|
||
|
devShell = pkgs.mkShell {
|
||
|
buildInputs = with pkgs; [
|
||
|
tailwindWithTypography
|
||
|
jekyll
|
||
|
];
|
||
|
};
|
||
|
|
||
|
packages = {
|
||
|
website = pkgs.callPackage ./pkgs/page.nix {
|
||
|
inherit tailwindWithTypography;
|
||
|
};
|
||
|
};
|
||
|
});
|
||
|
}
|