nix: moved y-combinator wallpaper to its own project/input

This commit is contained in:
Primrose 2024-10-25 19:31:49 +02:00
parent 37ac054f17
commit 10ee882d9e
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
6 changed files with 289 additions and 173 deletions

View file

@ -33,8 +33,6 @@ let
url = "https://github.com/NixOS/nixos-artwork/blob/53ea652ec7d8af5d21fd2b79b6c49cb39078ddfb/wallpapers/nix-wallpaper-binary-black_8k.png?raw=true";
hash = "sha256-MxEgvzWmdqMeI5GeI6Hzci6yd5iL44NDXyKQOuw+fLY=";
};
y-combinator = "${pkgs.myPkgs.y-combinator-wallpaper}/main.svg";
};
in
@ -50,7 +48,7 @@ in
home.file = {
".xscreensaver".source = ./xscreensaver/.xscreensaver;
".wallpaper".source = wallpapers.y-combinator;
".wallpaper".source = "${pkgs.wallpapers.y-combinator}/main.svg";
};
home.packages = [

View file

@ -20,6 +20,7 @@ let
(final: _: {
agenix = inputs.agenix.packages.${final.system}.default;
audio-lint = inputs.audio-lint.packages.${final.system}.default;
wallpapers = inputs.wallpapers.packages.${final.system};
})
inputs.nur.overlay

View file

@ -2,14 +2,10 @@
self,
lib,
inputs,
withSystem,
...
}:
{
imports = [ inputs.flakies.flakeModules.typstLib ];
flake.lib.mkNerdFont = ./mkNerdFont.nix;
flake.overlays.packages =
@ -77,25 +73,6 @@
ffgun = final.callPackage ./ffgun.nix { };
easyscan = final.callPackage ./easyscan.nix { };
y-combinator-wallpaper = withSystem final.system (
{ typstLib, ... }:
typstLib.typstDerivation.overrideAttrs {
src = ./y-combinator-wallpaper;
dontFixup = true; # no need to patch the pdf
buildPhase = ''
runHook preBuild
typst compile main.typ main.svg
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p "$out"
cp main.svg "$out/"
runHook postInstall
'';
}
);
# Unmerged packages from nixfinal
# TODO: use upstream when merged
dl-librescore = final.callPackage ./dl-librescore.nix { };

View file

@ -1,15 +0,0 @@
#import "@preview/stonewall:0.1.0": lesbian as gae
#import "@preview/weave:0.2.0": compose_ as c_
#set page(width: 3840pt, height: 2160pt, fill: black)
#c_((
align.with(horizon + center),
text.with(
size: 2160pt / 16,
fill: gradient.linear(..gae),
),
))[$lambda f. space
(lambda x. space f space (x space x)) space
(lambda x. space f space (x space x))$]