feat: init hyprlock module
This commit is contained in:
parent
ad6ec5e289
commit
9899953895
4 changed files with 94 additions and 11 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
18
home/modules/desktop/wayland/lockscreen/hyprlock/default.nix
Normal file
18
home/modules/desktop/wayland/lockscreen/hyprlock/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue