]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/graphical.nix
oignon: private: setup
[julm/julm-nix.git] / home-manager / profiles / graphical.nix
1 { pkgs, lib, config, ... }:
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.networkmanager-openvpn
15 pkgs.networkmanagerapplet
16 pkgs.pavucontrol
17 pkgs.x2goclient
18 pkgs.xclip
19 pkgs.xorg.xkill
20 pkgs.xsecurelock
21 pkgs.xss-lock
22 ];
23 services.redshift.enable = lib.mkDefault true;
24 services.screen-locker = {
25 enable = true;
26 lockCmd = toString (pkgs.writeShellScript "xsecurelock" ''
27 export PATH=${with pkgs; lib.makeBinPath [coreutils gnugrep xsecurelock xorg.xset]}
28 XSECURELOCK_BLANK_DPMS_STATE=off \
29 XSECURELOCK_BLANK_TIMEOUT=1 \
30 XSECURELOCK_DIM_TIME_MS=2000 \
31 XSECURELOCK_DISCARD_FIRST_KEYPRESS=0 \
32 XSECURELOCK_SAVER=saver_blank \
33 XSECURELOCK_SHOW_DATETIME=1 \
34 XSECURELOCK_SHOW_HOSTNAME=1 \
35 XSECURELOCK_SHOW_USERNAME=1 \
36 XSECURELOCK_WAIT_TIME_MS=2000 \
37 ${pkgs.xsecurelock}/bin/xsecurelock
38 '');
39 #XSECURELOCK_SWITCH_USER_COMMAND="${pkgs.lightdm}/bin/dm-tool switch-to-greeter" \
40 inactiveInterval = lib.mkDefault 3; # minutes
41 xautolock.detectSleep = true;
42 xss-lock.extraOptions = [
43 "--transfer-sleep-lock"
44 #"-n" "${pkgs.xss-lock}/share/doc/xss-lock/dim-screen.sh"
45 ];
46 };
47 }