diff --git a/modules/foliate/hm.nix b/modules/foliate/hm.nix index 4b53d46d..43ce4f3d 100644 --- a/modules/foliate/hm.nix +++ b/modules/foliate/hm.nix @@ -1,30 +1,29 @@ -{ config, lib, ... }: +{ mkTarget, ... }: +mkTarget { + name = "foliate"; + humanName = "Foliate"; -{ - options.stylix.targets.foliate.enable = - config.lib.stylix.mkEnableTarget "Foliate" true; + configElements = + { colors }: + { + programs.foliate = { + settings."viewer/view" = { + theme = "stylix.json"; + }; - config = - lib.mkIf (config.stylix.enable && config.stylix.targets.foliate.enable) - { - programs.foliate = { - settings."viewer/view" = { - theme = "stylix.json"; + themes.stylix = with colors.withHashtag; { + label = "Stylix"; + light = { + fg = base00; + bg = base05; + link = base0D; }; - - themes.stylix = with config.lib.stylix.colors.withHashtag; { - label = "Stylix"; - light = { - fg = base00; - bg = base05; - link = base0D; - }; - dark = { - fg = base05; - bg = base00; - link = base0D; - }; + dark = { + fg = base05; + bg = base00; + link = base0D; }; }; }; + }; }