11.stylix/modules/foliate/hm.nix
awwpotato cb42af5571
foliate: use upstream option (#1260)
Following a home-manager module being added for Foliate [1]

[1]: https://github.com/nix-community/home-manager/pull/7049

Link: https://github.com/danth/stylix/pull/1260

Reviewed-by: Gideon Wolfe <wolfeg2@wwu.edu>
2025-05-14 18:00:02 -07:00

30 lines
706 B
Nix

{ config, lib, ... }:
{
options.stylix.targets.foliate.enable =
config.lib.stylix.mkEnableTarget "Foliate" true;
config =
lib.mkIf (config.stylix.enable && config.stylix.targets.foliate.enable)
{
programs.foliate = {
settings."viewer/view" = {
theme = "stylix.json";
};
themes.stylix = with config.lib.stylix.colors.withHashtag; {
label = "Stylix";
light = {
fg = base00;
bg = base05;
link = base0D;
};
dark = {
fg = base05;
bg = base00;
link = base0D;
};
};
};
};
}