]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/graphical.nix
creds: cleanup
[julm/julm-nix.git] / home-manager / profiles / graphical.nix
1 { pkgs, lib, ... }:
2 {
3 imports = [
4 ./redshift.nix
5 ];
6 gtk.enable = true;
7 home.packages = [
8 pkgs.arandr
9 pkgs.dmenu
10 pkgs.glib.bin
11 pkgs.glxinfo
12 pkgs.gnome.dconf-editor
13 pkgs.hicolor-icon-theme
14 pkgs.pavucontrol
15 pkgs.x2goclient
16 pkgs.xclip
17 pkgs.xorg.xkill
18 pkgs.xsecurelock
19 pkgs.xss-lock
20 ];
21 services.redshift.enable = lib.mkDefault true;
22 services.screen-locker = {
23 enable = true;
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
36 '');
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"
43 ];
44 };
45 }