mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-21 15:53:32 +01:00
meta: Move stylix-background to separate package
Long-term this won't be necessary once backgrounds become optional in stylix.
This commit is contained in:
parent
d48d286a40
commit
6116425dea
@ -9,7 +9,6 @@
|
||||
let
|
||||
inherit (lib.types) float int;
|
||||
inherit (config.modules.system) username;
|
||||
inherit (config.lib.stylix.colors.withHashtag) base00;
|
||||
inherit (nix-config.packages.${pkgs.system}) aleo-fonts;
|
||||
inherit (builtins) attrValues;
|
||||
|
||||
@ -34,22 +33,10 @@ let
|
||||
noto-fonts-cjk-sans
|
||||
maple-mono
|
||||
noto-fonts-emoji
|
||||
stdenvNoCC
|
||||
imagemagick
|
||||
;
|
||||
|
||||
stylix-background = stdenvNoCC.mkDerivation {
|
||||
pname = "stylix-background";
|
||||
version = base00;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ imagemagick ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out
|
||||
magick -size 1x1 xc:${base00} $out/wallpaper.png
|
||||
'';
|
||||
stylix-background = pkgs.callPackage ../packages/stylix-background.nix {
|
||||
color = config.lib.stylix.colors.base00;
|
||||
};
|
||||
|
||||
cfg = config.modules.desktop;
|
||||
|
19
packages/stylix-background.nix
Normal file
19
packages/stylix-background.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user