]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm.nix
backup: add rsync on patate
[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.dosfsutils
92 #pkgs.dnsutils
93 pkgs.dstat
94 pkgs.e2fsprogs
95 pkgs.ethtool
96 pkgs.exa
97 pkgs.ffmpeg
98 pkgs.file
99 pkgs.flex
100 pkgs.gcc
101 pkgs.git-crypt
102 #pkgs.git-remote-gpg
103 pkgs.glib # gio
104 pkgs.go-mtpfs
105 pkgs.gnumake
106 pkgs.gvfs
107 #pkgs.haskell.packages.ghc865.zerobin
108 pkgs.hledger
109 pkgs.home-manager
110 pkgs.htop
111 pkgs.hunspell
112 pkgs.hunspellDicts.fr-moderne
113 pkgs.imagemagick
114 pkgs.inetutils
115 pkgs.jq
116 pkgs.knot-dns
117 pkgs.ldns
118 pkgs.less
119 pkgs.libfaketime
120 pkgs.libidn
121 pkgs.libxml2.bin
122 pkgs.linuxPackages.cpupower
123 pkgs.linuxPackages.perf
124 pkgs.lm_sensors
125 pkgs.lsof
126 pkgs.lsscsi
127 pkgs.meli
128 pkgs.miniupnpc
129 pkgs.mosh
130 pkgs.ncdu
131 pkgs.ncurses
132 pkgs.neofetch
133 pkgs.nix-prefetch-git
134 pkgs.nixpkgs-review
135 pkgs.nmon
136 pkgs.ntfs3g
137 pkgs.onionshare
138 pkgs.openssl
139 pkgs.p7zip
140 pkgs.parted
141 pkgs.pass
142 pkgs.pastebinit
143 pkgs.patchelf
144 pkgs.pciutils
145 pkgs.poppler_utils
146 pkgs.powertop
147 pkgs.procps
148 pkgs.qprint
149 pkgs.ranger
150 pkgs.rdfind
151 pkgs.ripgrep
152 pkgs.sanoid
153 pkgs.shellcheck
154 pkgs.sipcalc
155 pkgs.smartmontools
156 pkgs.sqlite
157 pkgs.sshfs
158 pkgs.stig
159 pkgs.strace
160 pkgs.stress
161 pkgs.sudo
162 pkgs.tcpdump
163 pkgs.thttpd
164 pkgs.tig
165 pkgs.tree
166 pkgs.unzip
167 pkgs.usbutils
168 pkgs.utillinux
169 pkgs.vbetool
170 pkgs.wget
171 pkgs.wgetpaste
172 pkgs.which
173 pkgs.xdg_utils
174 pkgs.xmlstarlet
175 pkgs.xsel
176 pkgs.youtube-dl
177 pkgs.zfs
178 ] ++ lib.optionals config.host.desktop [
179 pkgs.amule
180 pkgs.chromium
181 pkgs.djview
182 pkgs.dmenu
183 pkgs.evince
184 pkgs.firefox
185 pkgs.freeciv_gtk
186 pkgs.geeqie
187 pkgs.gimp
188 pkgs.gparted
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.parcellite
199 pkgs.pasystray
200 pkgs.pavucontrol
201 pkgs.thunderbird
202 pkgs.transmission-gtk
203 pkgs.vlc
204 pkgs.xclip
205 pkgs.xsane
206 ];
207 }