2023-02-26 17:32:30 +00:00
|
|
|
{
|
2024-02-16 18:52:30 +00:00
|
|
|
description = "MiOM homepage live at @ miom.space";
|
2023-02-26 17:32:30 +00:00
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
|
|
|
|
devshell.url = "github:numtide/devshell";
|
|
|
|
devshell.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
2024-02-16 18:52:30 +00:00
|
|
|
outputs = { self, flake-utils, devshell, nixpkgs }:
|
2023-02-26 17:32:30 +00:00
|
|
|
flake-utils.lib.simpleFlake {
|
|
|
|
inherit self nixpkgs;
|
|
|
|
name = "miom.space";
|
2023-07-02 22:38:32 +00:00
|
|
|
preOverlays = [ devshell.overlays.default ];
|
2023-02-26 17:32:30 +00:00
|
|
|
shell = { pkgs }:
|
|
|
|
let
|
|
|
|
google-font-downloader = pkgs.writeShellScriptBin "google-font-downloader" ''
|
|
|
|
echo "Attempting to fetch $1"
|
|
|
|
${pkgs.nodejs}/bin/npx google-font-downloader -- $1
|
|
|
|
rm ./_includes/styles/typography.css
|
|
|
|
echo "/* To regenerate this file, run $ google-font-downloader '$1' */" >> ./_includes/styles/typography.css
|
|
|
|
echo "" >> ./_includes/styles/typography.css
|
|
|
|
cat ./google-fonts-*.css >> ./_includes/styles/typography.css
|
|
|
|
rm ./google-fonts-*.css
|
|
|
|
'';
|
|
|
|
in
|
|
|
|
pkgs.devshell.mkShell {
|
|
|
|
devshell.packages = with pkgs; [
|
|
|
|
deno
|
|
|
|
google-font-downloader
|
|
|
|
];
|
|
|
|
bash.extra = ''
|
|
|
|
export NVIM_USE_DENOLS=1
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|