blob: 34214fa7dec9ccd2ade14074c00a041d8239f801 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ pkgs, ... }:
let
localPkgs = import ../packages/default.nix { inherit pkgs; };
in {
environment.systemPackages = [ localPkgs.bslock ];
services.xserver.xautolock = {
enable = true;
time = 15; # minutes
locker = "${localPkgs.bslock}/bin/bslock";
enableNotifier = true;
notify = 30;
notifier = "${pkgs.libnotify}/bin/notify-send 'Locking in 30 seconds'";
killer = null;
};
# Security wrappers
security.wrappers = {
bslock = {
# owner = config.users.users.imsohexy.name;
owner = "root";
setuid = true;
group = "root";
source = "${localPkgs.bslock}/bin/bslock";
};
};
}
|