2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-07 02:17:43 -07:00
|
|
|
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
|
|
|
|
{
|
2024-05-21 14:53:46 -07:00
|
|
|
options.programs.swaylock.catppuccin = lib.ctp.mkCatppuccinOpt "swaylock";
|
2024-04-07 02:17:43 -07:00
|
|
|
|
2024-05-21 14:53:46 -07:00
|
|
|
config.programs.swaylock.settings = lib.mkIf enable (
|
|
|
|
lib.ctp.fromINI (sources.swaylock + /themes/${cfg.flavour}.conf)
|
|
|
|
);
|
2024-04-07 02:17:43 -07:00
|
|
|
}
|