1 { config, lib, pkgs, ... }:
4 cfg = config.programs.slock;
10 enable = lib.mkOption {
12 type = lib.types.bool;
14 Whether to install slock screen locker with setuid wrapper.
17 package = lib.mkPackageOption pkgs "slock" {};
21 config = lib.mkIf cfg.enable {
22 environment.systemPackages = [ cfg.package ];
23 security.wrappers.slock =
27 source = lib.getExe cfg.package;