mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-15 05:59:17 +03:00
nixos/wlock: init
This commit is contained in:
parent
21763d4ebc
commit
0867bf32d0
2 changed files with 32 additions and 0 deletions
|
@ -560,6 +560,7 @@
|
||||||
./services/desktops/system76-scheduler.nix
|
./services/desktops/system76-scheduler.nix
|
||||||
./services/desktops/telepathy.nix
|
./services/desktops/telepathy.nix
|
||||||
./services/desktops/tumbler.nix
|
./services/desktops/tumbler.nix
|
||||||
|
./services/desktops/wlock.nix
|
||||||
./services/desktops/zeitgeist.nix
|
./services/desktops/zeitgeist.nix
|
||||||
./services/development/athens.nix
|
./services/development/athens.nix
|
||||||
./services/development/blackfire.nix
|
./services/development/blackfire.nix
|
||||||
|
|
31
nixos/modules/services/desktops/wlock.nix
Normal file
31
nixos/modules/services/desktops/wlock.nix
Normal 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 ];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue