From f88c2e1fe15fd876c21dffe2fa66b33cc530142f Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Mon, 21 Oct 2024 22:40:16 +0700 Subject: [PATCH] wallust: fix wallust.toml generation --- home/modules/hyprland/wallust/default.nix | 34 +++++++++++++---------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/home/modules/hyprland/wallust/default.nix b/home/modules/hyprland/wallust/default.nix index d111fd5..7674b17 100644 --- a/home/modules/hyprland/wallust/default.nix +++ b/home/modules/hyprland/wallust/default.nix @@ -1,8 +1,9 @@ -{ pkgs -, unstable -, lib -, config -, ... +{ + pkgs, + unstable, + lib, + config, + ... }: let cfg = config.profile.hyprland; @@ -56,18 +57,21 @@ in (getExe initWallPaperScript) ]); - # See https://codeberg.org/explosion-mental/wallust/src/branch/master/wallust.toml home.file.".config/wallust/wallust.toml".source = ( - (pkgs.formats.toml { }).generate "wallust.toml" - { - backend = "kmeans"; - color_space = "lch"; - alpha = 100; - threshold = 1; - palette = "dark"; - checkContrast = true; - } // cfg.wallust.settings + (pkgs.formats.toml { }).generate "wallust.toml" ( + lib.attrsets.mergeAttrsList [ + { + backend = "kmeans"; + color_space = "lch"; + alpha = 100; + threshold = 1; + palette = "dark"; + checkContrast = true; + } + cfg.wallust.settings + ] + ) ); }; }