rose-pine-nix/modules/home-manager/swaylock.nix
2024-04-07 09:17:43 +00:00

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