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