]> Git — Sourcephile - julm/julm-nix.git/blob - profiles/graphical.nix
nix-serve: allow user to connect to nix-daemon
[julm/julm-nix.git] / profiles / graphical.nix
1 { pkgs, lib, config, ... }:
2 {
3 gtk.enable = true;
4 home.packages = [
5 pkgs.arandr
6 pkgs.dmenu
7 pkgs.glib.bin
8 pkgs.glxinfo
9 pkgs.hicolor-icon-theme
10 pkgs.networkmanager-openvpn
11 pkgs.networkmanagerapplet
12 pkgs.pavucontrol
13 pkgs.x2goclient
14 pkgs.xclip
15 pkgs.xorg.xkill
16 pkgs.xsecurelock
17 pkgs.xss-lock
18 ];
19 home.sessionVariables = {
20 EDITOR = "vim -g";
21 };
22 services.redshift.enable = lib.mkDefault true;
23 services.screen-locker = {
24 enable = true;
25 lockCmd = toString (pkgs.writeShellScript "xsecurelock" ''
26 export PATH=${with pkgs; lib.makeBinPath [coreutils gnugrep xsecurelock xorg.xset]}
27 XSECURELOCK_BLANK_DPMS_STATE=off \
28 XSECURELOCK_BLANK_TIMEOUT=1 \
29 XSECURELOCK_DIM_TIME_MS=2000 \
30 XSECURELOCK_DISCARD_FIRST_KEYPRESS=0 \
31 XSECURELOCK_SAVER=saver_blank \
32 XSECURELOCK_SHOW_DATETIME=1 \
33 XSECURELOCK_SHOW_HOSTNAME=1 \
34 XSECURELOCK_SHOW_USERNAME=1 \
35 XSECURELOCK_WAIT_TIME_MS=2000 \
36 ${pkgs.xsecurelock}/bin/xsecurelock
37 '');
38 #XSECURELOCK_SWITCH_USER_COMMAND="${pkgs.lightdm}/bin/dm-tool switch-to-greeter" \
39 inactiveInterval = lib.mkDefault 3; # minutes
40 xautolock.detectSleep = true;
41 xss-lock.extraOptions = [
42 "--transfer-sleep-lock"
43 #"-n" "${pkgs.xss-lock}/share/doc/xss-lock/dim-screen.sh"
44 ];
45 };
46 }