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.ssh.matchBlocks."lan.losurdo.sourcephile.fr" = {
42 compression = true; # Helps to get a better framerate with forwardX11
44 forwardX11Trusted = true;
45 serverAliveInterval = 15;
47 programs.tmux.enable = true;
48 programs.man.enable = true;
49 manual.manpages.enable = false;
50 # builtins.elem config.host.name ["losurdo" "oignon"];
53 userName = "Julien Moutinho";
54 userEmail = "julm@sourcephile.fr";
55 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
56 signing.signByDefault = false;
58 if config.host.name == "losurdo"
59 || config.host.name == "oignon"
63 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
64 sendemail.smtpServer = "mail.sourcephile.fr";
65 sendemail.smtpServerPort = "465";
66 sendemail.smtpUser = "julm@sourcephile.fr";
69 services.redshift.enable = lib.mkDefault config.host.desktop;
70 xsession.enable = lib.mkDefault config.host.desktop;
71 xsession.windowManager.xmonad.enable = lib.mkDefault config.host.desktop;
72 home.stateVersion = "20.09";
73 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
74 home.sessionVariables = {
78 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
81 # Warning: triggers a rebuild of mumble
82 #nixpkgs.config.mumble.speechdSupport = lib.mkDefault config.host.desktop;
118 #pkgs.haskell.packages.ghc865.zerobin
123 pkgs.hunspellDicts.fr-moderne
134 pkgs.linuxPackages.cpupower
135 pkgs.linuxPackages.perf
145 pkgs.nix-prefetch-git
192 ] ++ lib.optionals config.host.desktop [
207 pkgs.hicolor-icon-theme
215 pkgs.networkmanager-openvpn
216 pkgs.networkmanagerapplet
220 pkgs.transmission-gtk