stylix/modules/sxiv/hm.nix

20 lines
522 B
Nix
Raw Normal View History

2024-12-24 16:04:27 +01:00
{ config, lib, ... }:
let
inherit (config.lib.stylix) colors;
inherit (config.stylix) fonts;
in {
options.stylix.targets.sxiv.enable =
config.lib.stylix.mkEnableTarget "Sxiv" true;
config = lib.mkIf (config.stylix.enable && config.stylix.targets.sxiv.enable) {
xresources = {
properties = {
"Sxiv.foreground" = "#${colors.base01}";
"Sxiv.background" = "#${colors.base04}";
"Sxiv.font" = "${fonts.sansSerif.name}-${toString fonts.sizes.applications}";
};
};
};
}