2024-05-21 21:53:46 +00:00
|
|
|
{ config, lib, ... }:
|
2023-04-18 02:50:23 +00:00
|
|
|
let
|
2024-05-13 20:33:16 +00:00
|
|
|
inherit (config.catppuccin) sources;
|
2023-04-18 02:50:23 +00:00
|
|
|
cfg = config.wayland.windowManager.sway.catppuccin;
|
2023-07-13 16:17:51 +00:00
|
|
|
enable = cfg.enable && config.wayland.windowManager.sway.enable;
|
2024-05-22 00:23:55 +00:00
|
|
|
theme = "${sources.sway}/themes/catppuccin-${cfg.flavor}";
|
2023-04-18 02:50:23 +00:00
|
|
|
in
|
|
|
|
{
|
2024-06-28 16:29:30 +00:00
|
|
|
options.wayland.windowManager.sway.catppuccin = lib.ctp.mkCatppuccinOpt { name = "sway"; };
|
2023-04-18 02:50:23 +00:00
|
|
|
|
2024-05-22 00:23:55 +00:00
|
|
|
config = lib.mkIf enable {
|
|
|
|
wayland.windowManager.sway.extraConfigEarly = ''
|
|
|
|
include ${theme}
|
|
|
|
'';
|
|
|
|
};
|
2023-04-18 02:50:23 +00:00
|
|
|
}
|