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