From 52cdeaf4cc9da9d32926821c78fd331bc8d2f14a Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Tue, 29 Sep 2026 23:29:28 -0700 Subject: restructure for cgit css --- nix/site.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nix/site.nix (limited to 'nix/site.nix') diff --git a/nix/site.nix b/nix/site.nix new file mode 100644 index 0000000..45209ff --- /dev/null +++ b/nix/site.nix @@ -0,0 +1,23 @@ +{ pkgs }: + +pkgs.stdenvNoCC.mkDerivation { + pname = "kassouni-net"; + version = "0.1.0"; + + # style/ sits outside the zola project because cgit shares its partials + src = pkgs.lib.fileset.toSource { + root = ../.; + fileset = pkgs.lib.fileset.unions [ ../site ../style ]; + }; + + nativeBuildInputs = [ pkgs.zola ]; + + buildPhase = "zola --root site build"; + installPhase = "cp -r site/public $out"; + + meta = { + description = "The personal website of Alex Kassouni"; + license = pkgs.lib.licenses.mit; + platforms = pkgs.lib.platforms.all; + }; +} -- cgit v1.3.1