]> Git — Sourcephile - julm/julm-nix.git/blob - homes/sevy.nix
sshfs: tweak settings
[julm/julm-nix.git] / homes / sevy.nix
1 { pkgs, lib, config, hostName, ... }:
2 {
3 imports = [
4 ./programs.nix
5 ./options.nix
6 ];
7 host.desktop =
8 hostName == "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
24 fi
25 '';
26 services.gpg-agent.enable = true;
27 services.redshift.enable = config.host.desktop;
28 services.screen-locker = {
29 enable = true;
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
42 '');
43 #XSECURELOCK_SWITCH_USER_COMMAND="${pkgs.lightdm}/bin/dm-tool switch-to-greeter" \
44 inactiveInterval = lib.mkDefault 5; # minutes
45 xautolock.detectSleep = true;
46 xss-lock.extraOptions = [
47 "--transfer-sleep-lock"
48 #"-n" "${pkgs.xss-lock}/share/doc/xss-lock/dim-screen.sh"
49 ];
50 };
51 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
52 home.sessionVariables = {
53 EDITOR = "vim -g";
54 LANG = "fr_FR.UTF-8";
55 LESS = "-FRSX";
56 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
57 MANPAGER = "less";
58 };
59 home.packages = [
60 pkgs.acpi
61 pkgs.aria2
62 pkgs.aspell
63 pkgs.aspellDicts.fr
64 pkgs.bc
65 pkgs.binutils
66 pkgs.bmon
67 pkgs.coreutils
68 pkgs.croc
69 pkgs.cryptsetup
70 pkgs.curl
71 pkgs.dino
72 #pkgs.dnsutils
73 pkgs.dstat
74 pkgs.ffmpeg
75 pkgs.file
76 pkgs.git-crypt
77 pkgs.go-mtpfs
78 pkgs.gnumake
79 pkgs.gvfs
80 #pkgs.haskell.packages.ghc865.zerobin
81 pkgs.hledger
82 pkgs.hunspell
83 pkgs.hunspellDicts.fr-moderne
84 pkgs.imagemagick
85 pkgs.inetutils
86 pkgs.knot-dns
87 pkgs.less
88 pkgs.linuxPackages.cpupower
89 pkgs.lm_sensors
90 pkgs.lsof
91 pkgs.lsscsi
92 #pkgs.meli
93 pkgs.miniupnpc
94 pkgs.ncdu
95 pkgs.neofetch
96 pkgs.ntfs3g
97 #pkgs.onionshare
98 pkgs.p7zip
99 pkgs.pass
100 pkgs.pciutils
101 pkgs.procps
102 pkgs.rdfind
103 pkgs.smartmontools
104 pkgs.sshfs
105 pkgs.sudo
106 pkgs.tig
107 pkgs.tree
108 pkgs.unzip
109 pkgs.usbutils
110 pkgs.utillinux
111 pkgs.vbetool
112 pkgs.wget
113 pkgs.which
114 pkgs.xdg_utils
115 pkgs.yt-dlp
116 ] ++ lib.optionals config.host.desktop [
117 #pkgs.amule
118 pkgs.chromium
119 pkgs.copyq
120 pkgs.djview
121 pkgs.dmenu
122 pkgs.evince
123 pkgs.firefox
124 #pkgs.freecad
125 pkgs.freeciv_gtk
126 pkgs.geeqie
127 pkgs.gimp
128 pkgs.gparted
129 pkgs.graphviz
130 pkgs.keepass
131 pkgs.libdvdcss
132 pkgs.libreoffice
133 pkgs.liferea
134 pkgs.mplayer
135 pkgs.mumble
136 pkgs.networkmanager-openvpn
137 pkgs.networkmanagerapplet
138 pkgs.pasystray
139 pkgs.pavucontrol
140 (pkgs.qgis.override { extraPythonPackages = (ps: [
141 ps.pyqt5_with_qtwebkit
142 ]); })
143 pkgs.thunderbird
144 pkgs.transmission-gtk
145 pkgs.vlc
146 pkgs.xclip
147 pkgs.xorg.xhost
148 pkgs.xsane
149
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
155 pkgs.gnome3.seahorse
156 pkgs.hicolor-icon-theme
157 pkgs.xfce.thunar-volman
158 ];
159 }