mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 17:54:53 +01:00
32 lines
589 B
Nix
32 lines
589 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.services.wlock;
|
|
in
|
|
{
|
|
options = {
|
|
services.wlock = {
|
|
enable = lib.mkEnableOption "wlock, a Wayland sessionlocker using the ext-session-lock-v1 protocol";
|
|
|
|
package = lib.mkPackageOption pkgs "wlock" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
security.wrappers.wlock = {
|
|
owner = "root";
|
|
group = "root";
|
|
# mirror upstream chmod of 4755
|
|
setuid = true;
|
|
setgid = false;
|
|
source = lib.getExe cfg.package;
|
|
};
|
|
};
|
|
|
|
meta.maintainers = [ lib.maintainers.fliegendewurst ];
|
|
}
|