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 = {
|
2024-08-03 16:34:37 +00:00
|
|
|
image = "${config.xdg.dataHome}/${config.${namespace}.windowManagers.sway.wallpaperPath}";
|
2024-08-03 03:49:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|