feat(desktop): move lockscreen config to homes and use home-manager modules

This commit is contained in:
Mohammad Rafiq 2025-06-14 12:02:58 +08:00
parent 6897ad63c9
commit 71b3703c75
No known key found for this signature in database
4 changed files with 43 additions and 50 deletions

View file

@ -1,6 +1,11 @@
{ config, lib, ... }:
let
inherit (lib) mkEnableOption mkIf mkMerge;
inherit (lib)
mkEnableOption
mkIf
mkMerge
singleton
;
cfg = config.desktop.lockscreen;
in
{
@ -11,6 +16,7 @@ in
config = mkMerge [
(mkIf cfg.hyprlock.enable {
security.pam.services.hyprlock = { };
home-manager.sharedModules = singleton { programs.hyprlock.enable = true; };
})
];
}