2023-07-13 09:17:51 -07:00
|
|
|
{ config
|
|
|
|
, pkgs
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
2023-04-17 19:50:23 -07:00
|
|
|
let
|
|
|
|
cfg = config.wayland.windowManager.sway.catppuccin;
|
2023-07-13 09:17:51 -07:00
|
|
|
enable = cfg.enable && config.wayland.windowManager.sway.enable;
|
|
|
|
theme =
|
|
|
|
pkgs.fetchFromGitHub
|
|
|
|
{
|
|
|
|
owner = "catppuccin";
|
|
|
|
repo = "sway";
|
|
|
|
rev = "c89098fc3517b64f0422aaaccb98dcab6ae9348f";
|
|
|
|
sha256 = "sha256-6Cvsmdl3OILz1vZovyBIuuSpm207I3W0dmUGowR9Ugk=";
|
|
|
|
}
|
|
|
|
+ "/themes/catppuccin-${cfg.flavour}";
|
2023-04-17 19:50:23 -07:00
|
|
|
in
|
|
|
|
{
|
|
|
|
options.wayland.windowManager.sway.catppuccin =
|
|
|
|
lib.ctp.mkCatppuccinOpt "sway" config;
|
|
|
|
|
2023-07-13 09:17:51 -07:00
|
|
|
config.wayland.windowManager.sway.extraConfigEarly =
|
2023-10-22 09:53:26 -07:00
|
|
|
lib.mkIf enable ''
|
|
|
|
include ${theme}
|
|
|
|
'';
|
2023-04-17 19:50:23 -07:00
|
|
|
}
|