2023-04-17 19:50:23 -07:00
|
|
|
{
|
2024-10-20 13:04:49 -07:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2024-11-04 20:55:40 -08:00
|
|
|
}:
|
|
|
|
let
|
2024-10-20 13:04:49 -07:00
|
|
|
inherit (config.rose-pine) sources;
|
|
|
|
|
|
|
|
cfg = config.wayland.windowManager.sway.rose-pine;
|
|
|
|
enable = cfg.enable && config.wayland.windowManager.sway.enable;
|
|
|
|
|
2024-11-04 20:55:40 -08:00
|
|
|
theme = "${sources.sway}/themes/${lib.rp.getKebabTheme cfg.flavor}.theme";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.wayland.windowManager.sway.rose-pine = lib.rp.mkRosePineOpt { name = "sway"; };
|
2023-04-17 19:50:23 -07:00
|
|
|
|
2024-05-21 17:23:55 -07:00
|
|
|
config = lib.mkIf enable {
|
|
|
|
wayland.windowManager.sway.extraConfigEarly = ''
|
|
|
|
include ${theme}
|
|
|
|
'';
|
|
|
|
};
|
2023-04-17 19:50:23 -07:00
|
|
|
}
|