feat: init hyprlock module

This commit is contained in:
ooks-io 2024-02-21 20:31:31 +13:00
parent ad6ec5e289
commit 9899953895
4 changed files with 94 additions and 11 deletions

View file

@ -4,12 +4,18 @@
imports = [
#./gtkLock --- still needs to be implemented
./swaylock
./hyprlock
];
options.homeModules.desktop.wayland.lockscreen = {
swaylock = {
enable = lib.mkEnableOption "Enable Swaylock screen";
};
hyprlock = {
enable = lib.mkEnableOption "Enable hyprlock screen";
};
};
#TODO: make assertion to prevent 2 lockscreens
}

View file

@ -0,0 +1,18 @@
{ lib, config, inputs, ... }:
let
cfg = config.homeModules.desktop.wayland.lockscreen.hyprlock;
inherit (config.colorscheme) colors;
in
{
imports = [ inputs.hyprlock.homeManagerModules.hyprlock ];
config = lib.mkIf cfg.enable {
programs.hyprlock = {
enable = true;
};
};
}