chore: update background

This commit is contained in:
Nickolaj Jepsen 2025-03-12 08:00:05 +01:00
parent 8a640e39cb
commit 67c81de5d1
3 changed files with 594 additions and 6 deletions

View file

@ -5,19 +5,21 @@
}: let
background = pkgs.stdenvNoCC.mkDerivation {
pname = "desktop-background";
version = "0.1";
version = "0.2";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./background.svg
./backgrounds/geometry.svg
./backgrounds/unknown.svg
];
};
nativeBuildInputs = [pkgs.inkscape];
buildPhase = ''
inkscape -w 3840 -h 2160 background.svg -o background.png
inkscape -w 3840 -h 2160 backgrounds/geometry.svg -o geometry.png
inkscape -w 3840 -h 2160 backgrounds/unknown.svg -o unknown.png
'';
installPhase = ''
@ -25,14 +27,17 @@
cp *.svg *.png $out/share/backgrounds
'';
};
png = background + "/share/backgrounds/background.png";
pngs = [
(background + "/share/backgrounds/unknown.png")
(background + "/share/backgrounds/geometry.png")
];
in {
fireproof.home-manager = {
services.hyprpaper = {
enable = true;
settings = {
preload = [png];
wallpaper = [",${png}"];
preload = pngs;
wallpaper = [",${builtins.head pngs}"];
};
};
};