add wallpaper that gets recolored

This commit is contained in:
lucy 2026-08-05 16:19:53 +02:00
commit 09426f911b
4 changed files with 90 additions and 57 deletions

View file

@ -2,6 +2,7 @@
inputs,
pkgs,
lib,
config,
...
}:
let
@ -26,6 +27,18 @@ let
map (n: "${dir}/${n}/${platform}.nix") (
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
);
wallpaper = ./wallpaper.png;
baseNames = map (c: "base0${c}") (lib.stringToCharacters "0123456789ABCDEF");
palette = lib.concatMapStringsSep " " (n: config.lib.stylix.colors.withHashtag.${n}) baseNames;
recolored =
pkgs.runCommand "wallpaper-stylix.png"
{
nativeBuildInputs = [ pkgs.lutgen ];
}
''
lutgen apply ${wallpaper} -o ~/.walls/stylix-bars.png -p ${palette}
'';
in
{
disabledModules = disable "nixos";
@ -49,9 +62,9 @@ in
stylix = {
enable = true;
autoEnable = false;
base16Scheme = "${pkgs.base16-schemes}/share/themes/black-metal.yaml";
base16Scheme = "${pkgs.base16-schemes}/share/themes/tokyodark.yaml";
polarity = "dark";
image = ./wallpaper.png;
image = recolored;
targets = {
console.enable = true;
gtk.enable = true;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

Before After
Before After