wallust: fix wallust.toml generation

This commit is contained in:
Tigor Hutasuhut 2024-10-21 22:40:16 +07:00
parent 6ffca8d98d
commit f88c2e1fe1

View file

@ -1,8 +1,9 @@
{ pkgs {
, unstable pkgs,
, lib unstable,
, config lib,
, ... config,
...
}: }:
let let
cfg = config.profile.hyprland; cfg = config.profile.hyprland;
@ -56,18 +57,21 @@ in
(getExe initWallPaperScript) (getExe initWallPaperScript)
]); ]);
# See https://codeberg.org/explosion-mental/wallust/src/branch/master/wallust.toml # See https://codeberg.org/explosion-mental/wallust/src/branch/master/wallust.toml
home.file.".config/wallust/wallust.toml".source = ( home.file.".config/wallust/wallust.toml".source = (
(pkgs.formats.toml { }).generate "wallust.toml" (pkgs.formats.toml { }).generate "wallust.toml" (
{ lib.attrsets.mergeAttrsList [
backend = "kmeans"; {
color_space = "lch"; backend = "kmeans";
alpha = 100; color_space = "lch";
threshold = 1; alpha = 100;
palette = "dark"; threshold = 1;
checkContrast = true; palette = "dark";
} // cfg.wallust.settings checkContrast = true;
}
cfg.wallust.settings
]
)
); );
}; };
} }