]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm.nix
patate: fix nixos-install (still fail because of restrict-eval true)
[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.shellcheck
151 pkgs.sipcalc
152 pkgs.smartmontools
153 pkgs.sqlite
154 pkgs.sshfs
155 pkgs.stig
156 pkgs.strace
157 pkgs.stress
158 pkgs.sudo
159 pkgs.tcpdump
160 pkgs.thttpd
161 pkgs.tig
162 pkgs.tree
163 pkgs.unzip
164 pkgs.usbutils
165 pkgs.utillinux
166 pkgs.vbetool
167 pkgs.wget
168 pkgs.wgetpaste
169 pkgs.which
170 pkgs.xdg_utils
171 pkgs.xmlstarlet
172 pkgs.xsel
173 pkgs.youtube-dl
174 pkgs.zfs
175 ] ++ lib.optionals config.host.desktop [
176 pkgs.amule
177 pkgs.chromium
178 pkgs.djview
179 pkgs.dmenu
180 pkgs.evince
181 pkgs.firefox
182 pkgs.freeciv_gtk
183 pkgs.geeqie
184 pkgs.gimp
185 pkgs.gparted
186 pkgs.hicolor-icon-theme
187 pkgs.keepass
188 pkgs.libdvdcss
189 pkgs.libreoffice
190 pkgs.liferea
191 pkgs.mplayer
192 pkgs.mumble
193 pkgs.networkmanager-openvpn
194 pkgs.networkmanagerapplet
195 pkgs.parcellite
196 pkgs.pasystray
197 pkgs.pavucontrol
198 pkgs.thunderbird
199 pkgs.transmission-gtk
200 pkgs.vlc
201 pkgs.xclip
202 pkgs.xsane
203 ];
204 }