1 { pkgs, lib, config, ... }:
8 config.host.name == "patate";
9 programs.bash.enable = true;
10 programs.firefox.enable = config.host.desktop;
11 programs.git.enable = true;
12 programs.git.package = pkgs.gitMinimal;
13 programs.gpg.enable = true;
14 programs.htop.enable = true;
15 programs.home-manager.enable = true;
16 programs.ssh.enable = true;
17 programs.vim.enable = true;
18 home.file.".profile".text = ''
19 # Tell XFCE to not start ssh-agent
20 if command -v xfconf-query >/dev/null && test ''${DISPLAY:+set}; then
21 xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
24 services.gpg-agent.enable = true;
25 services.redshift.enable = config.host.desktop;
26 services.screen-locker = {
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
41 #XSECURELOCK_SWITCH_USER_COMMAND="${pkgs.lightdm}/bin/dm-tool switch-to-greeter" \
42 enableDetectSleep = true;
43 inactiveInterval = lib.mkDefault 5; # minutes
44 xssLockExtraOptions = [
45 "--transfer-sleep-lock"
46 #"-n" "${pkgs.xss-lock}/share/doc/xss-lock/dim-screen.sh"
49 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
50 home.sessionVariables = {
54 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
78 #pkgs.haskell.packages.ghc865.zerobin
81 pkgs.hunspellDicts.fr-moderne
86 pkgs.linuxPackages.cpupower
114 ] ++ lib.optionals config.host.desktop [
133 pkgs.networkmanager-openvpn
134 pkgs.networkmanagerapplet
137 (pkgs.qgis.override { extraPythonPackages = (ps: [
138 ps.pyqt5_with_qtwebkit
141 pkgs.transmission-gtk
147 pkgs.elementary-xfce-icon-theme
148 pkgs.gnome3.gnome-calculator
149 pkgs.gnome3.defaultIconTheme
150 pkgs.gnome3.file-roller
151 pkgs.gnome3.gnome-keyring
153 pkgs.hicolor-icon-theme
154 pkgs.xfce.thunar-volman