]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/graphical.nix
nix: update hash of PR#236729
[julm/julm-nix.git] / home-manager / profiles / graphical.nix
1 { pkgs, lib, nixosConfig, ... }:
2 {
3 imports = [
4 ./redshift.nix
5 ];
6 gtk.enable = true;
7 home.packages = [
8 pkgs.arandr
9 pkgs.glib.bin
10 pkgs.glxinfo
11 pkgs.gnome.dconf-editor
12 pkgs.hicolor-icon-theme
13 pkgs.pavucontrol
14 pkgs.qpwgraph
15 pkgs.x2goclient
16 pkgs.xclip
17 pkgs.xorg.xkill
18 pkgs.xsecurelock
19 pkgs.xss-lock
20 ];
21 #services.gnome.at-spi2-core.enable = true;
22 home.sessionVariables = lib.mkIf (!nixosConfig.services.gnome.at-spi2-core.enable) {
23 NO_AT_BRIDGE = "1";
24 };
25 services.redshift.enable = lib.mkDefault true;
26 services.screen-locker = {
27 enable = true;
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
40 '');
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"
47 ];
48 };
49 }