1 { pkgs, lib, config, ... }:
10 host.desktop = lib.elem config.host.name [ /*"losurdo"*/ "oignon" ];
11 host.server = lib.elem config.host.name [ "losurdo" "mermet" ];
12 programs.bash.enable = true;
13 programs.gpg.enable = true;
14 home.file.".gnupg/gpg.conf".text = ''
16 trusted-key 0xD15AF7F467E8299B
18 trusted-key 0x2E3618DD0D087650
20 services.gpg-agent.enable = true;
21 services.gpg-agent.sshKeys = [
23 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
25 "123BF80054E9E9CE2BD7B899F07207665392B727"
27 programs.direnv.enable = true;
28 programs.htop.enable = true;
29 programs.irssi.enable = config.host.name == "mermet";
30 home.file.".irssi/passwd".text = ''
31 FreeNode : ${pkgs.pass}/bin/pass freenode.net/irc/julm
32 GeekNode : ${pkgs.pass}/bin/pass geeknode.org/irc/julm
33 IndyMedia : ${pkgs.pass}/bin/pass indymedia.org/irc/julm
34 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
36 programs.vim.enable = true;
37 programs.ssh.enable = true;
38 programs.ssh.matchBlocks."lan.losurdo.sourcephile.fr" = {
39 compression = true; # Helps to get a better framerate with forwardX11
41 forwardX11Trusted = true;
42 serverAliveInterval = 15;
44 programs.tmux.enable = true;
45 programs.man.enable = true;
46 manual.manpages.enable = false;
49 userName = "Julien Moutinho";
50 userEmail = "julm@sourcephile.fr";
51 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
52 signing.signByDefault = false;
54 if lib.elem config.host.name [ "losurdo" "oignon" ]
58 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
59 sendemail.smtpServer = "mail.sourcephile.fr";
60 sendemail.smtpServerPort = "465";
61 sendemail.smtpUser = "julm@sourcephile.fr";
64 services.redshift.enable = lib.mkDefault config.host.desktop;
65 xsession.enable = lib.mkDefault config.host.desktop;
66 xsession.windowManager.xmonad.enable = lib.mkDefault config.host.desktop;
67 home.stateVersion = "20.09";
68 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
69 home.sessionVariables = {
73 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
76 # Warning: triggers a rebuild of mumble
77 #nixpkgs.config.mumble.speechdSupport = lib.mkDefault config.host.desktop;
113 #pkgs.haskell.packages.ghc865.zerobin
118 pkgs.hunspellDicts.fr-moderne
129 pkgs.linuxPackages.cpupower
130 pkgs.linuxPackages.perf
140 pkgs.nix-prefetch-git
187 ] ++ lib.optionals config.host.desktop [
202 pkgs.hicolor-icon-theme
210 pkgs.networkmanager-openvpn
211 pkgs.networkmanagerapplet
215 pkgs.transmission-gtk