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

14 lines
387 B
Nix
Raw Normal View History

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