Converted swaylock to a home module

This commit is contained in:
alejandro-angulo 2024-08-02 20:49:25 -07:00
parent 6cf34c66c8
commit dae4076857
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
5 changed files with 30 additions and 30 deletions

View file

@ -0,0 +1,24 @@
{
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}";
};
};
};
}