1 { pkgs, lib, config, ... }:
11 config.host.name == "oignon";
13 config.host.name == "mermet" ||
14 config.host.name == "losurdo";
15 programs.bash.enable = true;
16 programs.gpg.enable = true;
17 home.file.".gnupg/gpg.conf".text = ''
19 trusted-key 0xD15AF7F467E8299B
21 trusted-key 0x2E3618DD0D087650
23 services.gpg-agent.enable = true;
24 services.gpg-agent.sshKeys = [
26 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
28 "123BF80054E9E9CE2BD7B899F07207665392B727"
30 programs.direnv.enable = true;
31 programs.htop.enable = true;
32 programs.irssi.enable = config.host.name == "mermet";
33 home.file.".irssi/passwd".text = ''
34 FreeNode : ${pkgs.pass}/bin/pass freenode.net/irc/julm
35 GeekNode : ${pkgs.pass}/bin/pass geeknode.org/irc/julm
36 IndyMedia : ${pkgs.pass}/bin/pass indymedia.org/irc/julm
37 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
39 programs.vim.enable = true;
40 programs.ssh.enable = true;
41 programs.tmux.enable = true;
42 programs.man.enable = true;
43 manual.manpages.enable = false;
44 # builtins.elem config.host.name ["losurdo" "oignon"];
47 userName = "Julien Moutinho";
48 userEmail = "julm@sourcephile.fr";
49 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
50 signing.signByDefault = false;
52 if config.host.name == "losurdo"
53 || config.host.name == "oignon"
57 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
58 sendemail.smtpServer = "mail.sourcephile.fr";
59 sendemail.smtpServerPort = "465";
60 sendemail.smtpUser = "julm@sourcephile.fr";
63 services.redshift.enable = lib.mkDefault config.host.desktop;
64 xsession.enable = lib.mkDefault config.host.desktop;
65 xsession.windowManager.xmonad.enable = lib.mkDefault config.host.desktop;
66 home.stateVersion = "20.09";
67 home.sessionVariables = {
71 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
73 PATH = lib.makeBinPath [ config.home.homeDirectory ] + ":$PATH";
75 # Warning: triggers a rebuild of mumble
76 #nixpkgs.config.mumble.speechdSupport = lib.mkDefault config.host.desktop;
111 #pkgs.haskell.packages.ghc865.zerobin
116 pkgs.hunspellDicts.fr-moderne
127 pkgs.linuxPackages.cpupower
128 pkgs.linuxPackages.perf
138 pkgs.nix-prefetch-git
185 ] ++ lib.optionals config.host.desktop [
200 pkgs.hicolor-icon-theme
208 pkgs.networkmanager-openvpn
209 pkgs.networkmanagerapplet
213 pkgs.transmission-gtk
218 ] ++ lib.optionals (config.host.name == "oignon") [
223 #pkgs.sweethome3d.application