2024-04-07 02:17:43 -07:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2024-04-07 02:17:43 -07:00
|
|
|
cfg = config.programs.swaylock.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.swaylock.enable;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.programs.swaylock.catppuccin =
|
|
|
|
lib.ctp.mkCatppuccinOpt "swaylock";
|
|
|
|
|
|
|
|
config.programs.swaylock.settings = lib.mkIf enable
|
|
|
|
(lib.ctp.fromINI (sources.swaylock + /themes/${cfg.flavour}.conf));
|
|
|
|
}
|