dotfiles/modules/home/programs/swaylock/default.nix

20 lines
338 B
Nix
Raw Normal View History

2024-08-03 03:49:25 +00:00
{
config,
lib,
namespace,
...
}: let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.programs.swaylock;
in {
options.${namespace}.programs.swaylock = {
enable = mkEnableOption "swaylock";
};
config = mkIf cfg.enable {
2025-01-17 03:04:06 +00:00
catppuccin.swaylock.enable = true;
programs.swaylock.enable = true;
2024-08-03 03:49:25 +00:00
};
}