stylix/modules/wpaperd/hm.nix

18 lines
457 B
Nix
Raw Permalink Normal View History

2024-12-24 16:04:27 +01:00
{ config, lib, ... }:
{
options.stylix.targets.wpaperd.enable = config.lib.stylix.mkEnableTarget "wpaperd" true;
config = lib.mkIf (config.stylix.enable && config.stylix.targets.wpaperd.enable) {
programs.wpaperd.settings.any = {
path = "${config.stylix.image}";
mode = let
inherit (config.stylix) imageScalingMode;
in
if imageScalingMode == "fill"
then "fit"
else imageScalingMode;
};
};
}