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

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