feat(desktop): move lockscreen config to homes and use home-manager modules
This commit is contained in:
parent
6897ad63c9
commit
71b3703c75
4 changed files with 43 additions and 50 deletions
|
@ -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; };
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue