1 { pkgs, lib, config, ... }:
8 config.host.name == "patate";
9 gtk.enable = config.host.desktop;
10 programs.bash.enable = true;
11 # error: attribute 'gtk3' missing
12 #programs.firefox.enable = config.host.desktop;
13 programs.git.enable = true;
14 programs.git.package = pkgs.gitMinimal;
15 programs.gpg.enable = true;
16 programs.htop.enable = true;
17 programs.home-manager.enable = true;
18 programs.ssh.enable = true;
19 programs.vim.enable = true;
20 home.file.".profile".text = ''
21 # Tell XFCE to not start ssh-agent
22 if command -v xfconf-query >/dev/null && test ''${DISPLAY:+set}; then
23 xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
26 services.gpg-agent.enable = true;
27 services.redshift.enable = config.host.desktop;
28 services.screen-locker = {
30 lockCmd = toString (pkgs.writeShellScript "xsecurelock" ''
31 export PATH=${with pkgs; lib.makeBinPath [coreutils gnugrep xsecurelock xorg.xset]}
32 XSECURELOCK_BLANK_DPMS_STATE=off \
33 XSECURELOCK_BLANK_TIMEOUT=1 \
34 XSECURELOCK_DIM_TIME_MS=2000 \
35 XSECURELOCK_DISCARD_FIRST_KEYPRESS=0 \
36 XSECURELOCK_SAVER=saver_blank \
37 XSECURELOCK_SHOW_DATETIME=1 \
38 XSECURELOCK_SHOW_HOSTNAME=1 \
39 XSECURELOCK_SHOW_USERNAME=1 \
40 XSECURELOCK_WAIT_TIME_MS=2000 \
41 ${pkgs.xsecurelock}/bin/xsecurelock
43 #XSECURELOCK_SWITCH_USER_COMMAND="${pkgs.lightdm}/bin/dm-tool switch-to-greeter" \
44 enableDetectSleep = true;
45 inactiveInterval = lib.mkDefault 5; # minutes
46 xssLockExtraOptions = [
47 "--transfer-sleep-lock"
48 #"-n" "${pkgs.xss-lock}/share/doc/xss-lock/dim-screen.sh"
51 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
52 home.sessionVariables = {
56 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
80 #pkgs.haskell.packages.ghc865.zerobin
83 pkgs.hunspellDicts.fr-moderne
88 pkgs.linuxPackages.cpupower
116 ] ++ lib.optionals config.host.desktop [
136 pkgs.networkmanager-openvpn
137 pkgs.networkmanagerapplet
140 (pkgs.qgis.override { extraPythonPackages = (ps: [
141 ps.pyqt5_with_qtwebkit
144 pkgs.transmission-gtk
150 pkgs.elementary-xfce-icon-theme
151 pkgs.gnome3.gnome-calculator
152 pkgs.gnome3.defaultIconTheme
153 pkgs.gnome3.file-roller
154 pkgs.gnome3.gnome-keyring
156 pkgs.hicolor-icon-theme
157 pkgs.xfce.thunar-volman