26 lines
346 B
Nix
26 lines
346 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.waylock;
|
|
in
|
|
{
|
|
options.modules.waylock = {
|
|
enable = mkEnableOption "waylock";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = (with pkgs; [ waylock ]);
|
|
|
|
# Systemwide configuration
|
|
systemwide = {
|
|
security.pam.services.waylock = { };
|
|
};
|
|
};
|
|
}
|