17 lines
356 B
Nix
17 lines
356 B
Nix
|
{ config
|
||
|
, lib
|
||
|
, sources
|
||
|
, ...
|
||
|
}:
|
||
|
let
|
||
|
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));
|
||
|
}
|