]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm.nix
patate: augmente la rétention des sauvegardes
[julm/julm-nix.git] / homes / julm.nix
1 { pkgs, lib, config, ... }:
2 {
3 imports = [
4 ./softwares.nix
5 ./options.nix
6 julm/mutt.nix
7 julm/hosts/oignon.nix
8 ];
9 host.desktop =
10 config.host.name == "oignon";
11 host.server =
12 config.host.name == "mermet" ||
13 config.host.name == "losurdo";
14 programs.bash.enable = true;
15 programs.gpg.enable = true;
16 home.file.".gnupg/gpg.conf".text = ''
17 # julm@autogeree.net
18 trusted-key 0xD15AF7F467E8299B
19 # julm@sourcephile.fr
20 trusted-key 0x2E3618DD0D087650
21 '';
22 services.gpg-agent.enable = true;
23 services.gpg-agent.sshKeys = [
24 # julm@autogeree.net
25 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
26 # julm@sourcephile.fr
27 "123BF80054E9E9CE2BD7B899F07207665392B727"
28 ];
29 programs.direnv.enable = true;
30 programs.htop.enable = true;
31 programs.irssi.enable = config.host.name == "mermet";
32 home.file.".irssi/passwd".text = ''
33 FreeNode : ${pkgs.pass}/bin/pass freenode.net/irc/julm
34 GeekNode : ${pkgs.pass}/bin/pass geeknode.org/irc/julm
35 IndyMedia : ${pkgs.pass}/bin/pass indymedia.org/irc/julm
36 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
37 '';
38 programs.vim.enable = true;
39 programs.ssh.enable = true;
40 programs.tmux.enable = true;
41 programs.man.enable = true;
42 manual.manpages.enable = false;
43 # builtins.elem config.host.name ["losurdo" "oignon"];
44 programs.git = {
45 enable = true;
46 userName = "Julien Moutinho";
47 userEmail = "julm@sourcephile.fr";
48 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
49 signing.signByDefault = false;
50 extraConfig = {
51 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
52 sendemail.smtpServer = "mail.sourcephile.fr";
53 sendemail.smtpServerPort = "465";
54 sendemail.smtpUser = "julm@sourcephile.fr";
55 };
56 };
57 services.redshift.enable = config.host.desktop;
58 xsession.enable = config.host.desktop;
59 xsession.windowManager.xmonad.enable = config.host.desktop;
60 home.stateVersion = "20.09";
61 home.sessionVariables = {
62 EDITOR = "vim";
63 LANG = "fr_FR.UTF-8";
64 LESS = "-FRSX";
65 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
66 MANPAGER = "less";
67 PATH = lib.makeBinPath [ config.home.homeDirectory ] + ":$PATH";
68 };
69 # Warning: triggers a rebuild of mumble
70 #nixpkgs.config.mumble.speechdSupport = config.host.desktop;
71 home.packages = [
72 pkgs.acpi
73 pkgs.amfora
74 pkgs.aria2
75 pkgs.aspell
76 pkgs.aspellDicts.fr
77 pkgs.bc
78 pkgs.binutils
79 pkgs.bison
80 pkgs.bmon
81 pkgs.browsh
82 pkgs.cabal2nix
83 pkgs.compsize
84 pkgs.convmv
85 pkgs.coreutils
86 pkgs.croc
87 pkgs.cryptsetup
88 pkgs.curl
89 pkgs.dino
90 pkgs.direnv
91 #pkgs.dnsutils
92 pkgs.dstat
93 pkgs.e2fsprogs
94 pkgs.ethtool
95 pkgs.exa
96 pkgs.ffmpeg
97 pkgs.file
98 pkgs.flex
99 pkgs.gcc
100 pkgs.git-crypt
101 #pkgs.git-remote-gpg
102 pkgs.glib # gio
103 pkgs.go-mtpfs
104 pkgs.gnumake
105 pkgs.gvfs
106 #pkgs.haskell.packages.ghc865.zerobin
107 pkgs.hledger
108 pkgs.home-manager
109 pkgs.htop
110 pkgs.hunspell
111 pkgs.hunspellDicts.fr-moderne
112 pkgs.imagemagick
113 pkgs.inetutils
114 pkgs.jq
115 pkgs.knot-dns
116 pkgs.ldns
117 pkgs.less
118 pkgs.libfaketime
119 pkgs.libidn
120 pkgs.libxml2.bin
121 pkgs.linuxPackages.cpupower
122 pkgs.linuxPackages.perf
123 pkgs.lm_sensors
124 pkgs.lsof
125 pkgs.lsscsi
126 pkgs.meli
127 pkgs.miniupnpc
128 pkgs.mosh
129 pkgs.ncdu
130 pkgs.ncurses
131 pkgs.neofetch
132 pkgs.nix-prefetch-git
133 pkgs.nixpkgs-review
134 pkgs.nmon
135 pkgs.ntfs3g
136 pkgs.onionshare
137 pkgs.openssl
138 pkgs.p7zip
139 pkgs.parted
140 pkgs.pass
141 pkgs.pastebinit
142 pkgs.patchelf
143 pkgs.pciutils
144 pkgs.poppler_utils
145 pkgs.powertop
146 pkgs.procps
147 pkgs.qprint
148 pkgs.ranger
149 pkgs.rdfind
150 pkgs.ripgrep
151 pkgs.sanoid
152 pkgs.shellcheck
153 pkgs.sipcalc
154 pkgs.smartmontools
155 pkgs.sqlite
156 pkgs.sshfs
157 pkgs.stig
158 pkgs.strace
159 pkgs.stress
160 pkgs.sudo
161 pkgs.tcpdump
162 pkgs.thttpd
163 pkgs.tig
164 pkgs.tree
165 pkgs.unzip
166 pkgs.usbutils
167 pkgs.utillinux
168 pkgs.vbetool
169 pkgs.wget
170 pkgs.wgetpaste
171 pkgs.which
172 pkgs.xdg_utils
173 pkgs.xmlstarlet
174 pkgs.xsel
175 pkgs.youtube-dl
176 pkgs.zfs
177 ] ++ lib.optionals config.host.desktop [
178 pkgs.amule
179 pkgs.chromium
180 pkgs.djview
181 pkgs.dmenu
182 pkgs.evince
183 pkgs.firefox
184 pkgs.freeciv_gtk
185 pkgs.geeqie
186 pkgs.gimp
187 pkgs.gparted
188 pkgs.graphviz
189 pkgs.hicolor-icon-theme
190 pkgs.keepass
191 pkgs.libdvdcss
192 pkgs.libreoffice
193 pkgs.liferea
194 pkgs.mplayer
195 pkgs.mumble
196 pkgs.networkmanager-openvpn
197 pkgs.networkmanagerapplet
198 pkgs.nix-du
199 pkgs.parcellite
200 pkgs.pasystray
201 pkgs.pavucontrol
202 pkgs.thunderbird
203 pkgs.transmission-gtk
204 pkgs.vlc
205 pkgs.xclip
206 pkgs.xsane
207 ];
208 }