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