rose-pine-nix/modules/home-manager/swaylock.nix

17 lines
356 B
Nix
Raw Normal View History

{ 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));
}