1 { pkgs, lib, config, ... }:
12 pkgs.gnome.dconf-editor
13 pkgs.hicolor-icon-theme
21 services.redshift.enable = lib.mkDefault true;
22 services.screen-locker = {
24 lockCmd = toString (pkgs.writeShellScript "xsecurelock" ''
25 export PATH=${with pkgs; lib.makeBinPath [coreutils gnugrep xsecurelock xorg.xset]}
26 XSECURELOCK_BLANK_DPMS_STATE=off \
27 XSECURELOCK_BLANK_TIMEOUT=1 \
28 XSECURELOCK_DIM_TIME_MS=2000 \
29 XSECURELOCK_DISCARD_FIRST_KEYPRESS=0 \
30 XSECURELOCK_SAVER=saver_blank \
31 XSECURELOCK_SHOW_DATETIME=1 \
32 XSECURELOCK_SHOW_HOSTNAME=1 \
33 XSECURELOCK_SHOW_USERNAME=1 \
34 XSECURELOCK_WAIT_TIME_MS=2000 \
35 ${pkgs.xsecurelock}/bin/xsecurelock
37 #XSECURELOCK_SWITCH_USER_COMMAND="${pkgs.lightdm}/bin/dm-tool switch-to-greeter" \
38 inactiveInterval = lib.mkDefault 3; # minutes
39 xautolock.detectSleep = true;
40 xss-lock.extraOptions = [
41 "--transfer-sleep-lock"
42 #"-n" "${pkgs.xss-lock}/share/doc/xss-lock/dim-screen.sh"