Fixed system wide configuration system for user specific modules

This commit is contained in:
Jan Bulthuis committed 2024-07-18 07:09:56 +02:00
1 parent 1b4f8911fd
commit f80047be52
4 files changed
+12 -23

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
{ lib, config, pkgs, ... }:
with lib;
let
enabled = any (user: user.modules.waylock.enable) (attrValues config.home-manager.users);
in {
config = mkIf enabled {
security.pam.services.waylock = {};
};
}