nixos/wlock: init (#390070)

This commit is contained in:
Pol Dellaiera
2025-03-23 08:38:32 +01:00
committed by GitHub
3 changed files with 33 additions and 0 deletions
+1
View File
@@ -560,6 +560,7 @@
./services/desktops/system76-scheduler.nix
./services/desktops/telepathy.nix
./services/desktops/tumbler.nix
./services/desktops/wlock.nix
./services/desktops/zeitgeist.nix
./services/development/athens.nix
./services/development/blackfire.nix
+31
View File
@@ -0,0 +1,31 @@
{
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 ];
}
+1
View File
@@ -50,5 +50,6 @@ stdenv.mkDerivation {
homepage = "https://codeberg.org/sewn/wlock";
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ fliegendewurst ];
mainProgram = "wlock";
};
}