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

25 lines
468 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 {
programs.swaylock = {
enable = true;
settings = {
# TODO: Set wallpaper
# image = "${config.xdg.dataHome}/${config.${namespace}.desktop.sway.wallpaperPath}";
};
};
};
}