+/website
git clone https://git.julia.blue/+/website
3537b6e
master
1{ 2inputs = { 3nixpkgs . url = "github:NixOS/nixpkgs/nixos-unstable" ; 4utils . url = "github:numtide/flake-utils" ; 5}; 6outputs = { self , nixpkgs , utils } :utils . lib . eachDefaultSystem ( system : 7let pkgs = nixpkgs . legacyPackages .${ system }; in { 8devShell = pkgs . mkShell { 9packages = with pkgs ; [ 10entr 11caddy 12( writeShellScriptBin "deploy" '' 13set -eu 14HOST ="'' $ { HOST-julia.blue} " 15DIR="'' $ { DIR-/website} " 16cargo r -r 17rsync -a --info=progress2 .site/ " $ HOST: $ DIR " 18'' ) 19( writeShellScriptBin "preview" '' 20set -euo pipefail 21cargo r -r 22ln -sf assets .site/assets 23caddy run --config Caddyfile & 24readonly server_pid = $ ! 25trap 'kill -9 $server_pid; echo "goodbye 👋"' EXIT 26while sleep 1; do fd . assets/{pages,posts,projects,templates,} src | 27entr -d cargo r -r ; done 28'' ) 29]; 30TMTHEME = " ${ pkgs . fetchFromGitHub { 31owner = "catppuccin" ; 32repo = "bat" ; 33rev = "699f60fc8ec434574ca7451b444b880430319941" ; 34hash = "sha256-6fWoCH90IGumAMc4buLRWL0N61op+AuMNN9CAR9/OdI=" ; 35}} /themes/Catppuccin Mocha.tmTheme" ; 36# FONTS=[]; TODO: use ones from nix and copy them in the generator 37}; 38} 39); 40}