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,10 +57,10 @@ 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"; backend = "kmeans";
color_space = "lch"; color_space = "lch";
@ -67,7 +68,10 @@ in
threshold = 1; threshold = 1;
palette = "dark"; palette = "dark";
checkContrast = true; checkContrast = true;
} // cfg.wallust.settings }
cfg.wallust.settings
]
)
); );
}; };
} }