tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/wlock: init
FliegendeWurst
10 months ago
0867bf32
21763d4e
+32
2 changed files
expand all
collapse all
unified
split
nixos
modules
module-list.nix
services
desktops
wlock.nix
+1
nixos/modules/module-list.nix
···
560
560
./services/desktops/system76-scheduler.nix
561
561
./services/desktops/telepathy.nix
562
562
./services/desktops/tumbler.nix
563
563
+
./services/desktops/wlock.nix
563
564
./services/desktops/zeitgeist.nix
564
565
./services/development/athens.nix
565
566
./services/development/blackfire.nix
+31
nixos/modules/services/desktops/wlock.nix
···
1
1
+
{
2
2
+
config,
3
3
+
lib,
4
4
+
pkgs,
5
5
+
...
6
6
+
}:
7
7
+
let
8
8
+
cfg = config.services.wlock;
9
9
+
in
10
10
+
{
11
11
+
options = {
12
12
+
services.wlock = {
13
13
+
enable = lib.mkEnableOption "wlock, a Wayland sessionlocker using the ext-session-lock-v1 protocol";
14
14
+
15
15
+
package = lib.mkPackageOption pkgs "wlock" { };
16
16
+
};
17
17
+
};
18
18
+
19
19
+
config = lib.mkIf cfg.enable {
20
20
+
security.wrappers.wlock = {
21
21
+
owner = "root";
22
22
+
group = "root";
23
23
+
# mirror upstream chmod of 4755
24
24
+
setuid = true;
25
25
+
setgid = false;
26
26
+
source = lib.getExe cfg.package;
27
27
+
};
28
28
+
};
29
29
+
30
30
+
meta.maintainers = [ lib.maintainers.fliegendewurst ];
31
31
+
}