mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
6116425dea
Long-term this won't be necessary once backgrounds become optional in stylix.
20 lines
303 B
Nix
20 lines
303 B
Nix
{
|
|
stdenvNoCC,
|
|
imagemagick,
|
|
color ? "181818",
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "stylix-background";
|
|
version = "1.0.0-${color}";
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ imagemagick ];
|
|
|
|
postInstall = ''
|
|
mkdir -p $out
|
|
magick -size 1x1 xc:#${color} $out/wallpaper.png
|
|
'';
|
|
}
|