nix: +y-combinator-wallpaper

This commit is contained in:
Primrose 2024-10-20 17:07:42 +02:00
parent c902a681ec
commit 51b68d468e
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
4 changed files with 230 additions and 22 deletions

View file

@ -2,10 +2,14 @@
self,
lib,
inputs,
withSystem,
...
}:
{
imports = [ inputs.flakies.flakeModules.typstLib ];
flake.lib.mkNerdFont = ./mkNerdFont.nix;
flake.overlays.packages =
@ -71,6 +75,18 @@
ffgun = final.callPackage ./ffgun.nix { };
easyscan = final.callPackage ./easyscan.nix { };
y-combinator-wallpaper = withSystem final.system (
{ typstLib, ... }:
typstLib.typstDerivation.overrideAttrs {
src = ./y-combinator-wallpaper;
buildPhase = ''
runHook preBuild
typst compile main.typ "$out"/main.svg
'';
dontFixup = true;
}
);
# Unmerged packages from nixfinal
# TODO: use upstream when merged
dl-librescore = final.callPackage ./dl-librescore.nix { };

View file

@ -0,0 +1,13 @@
#set page(width: 3840pt, height: 2160pt, fill: black)
#set text(size: 2160pt / 16)
#set align(horizon + center)
#import "@preview/stonewall:0.1.0": lesbian
#let y_combinator = $lambda f. space (
(lambda x. space f (x space x) space (lambda x. space f (x space x))
)$
#text(
fill: gradient.linear(..(lesbian)),
y_combinator,
)