pub.solar/flake.nix
Benjamin Yule Bädorf e6279896d6
v2: initial commit
* Separate german and english language pages
* Add a services page with details per service
* Move hakken dates into the same container as the text
* Introductory text on the homepage
2024-03-06 16:34:00 +01:00

42 lines
1.3 KiB
Nix

{
description = "pub.solar website";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = inputs@{ self, ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" "aarch64-linux" ];
perSystem = { system, pkgs, config, ... }: {
_module.args = {
inherit inputs;
pkgs = import inputs.nixpkgs { inherit system; };
};
devShells.default = 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.scss || true
echo "/* To regenerate this file, run $ google-font-downloader '$1' */" >> ./_includes/styles/typography.scss
echo "" >> ./_includes/styles/stypography.scss
cat ./google-fonts-*.css >> ./_includes/styles/typography.scss
rm ./google-fonts-*.css || true
'';
in pkgs.mkShell {
buildInputs = with pkgs; [
deno
google-font-downloader
];
shellHook = ''
export NVIM_USE_DENOLS=1
'';
};
};
};
}