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 programs.irssi.extraConfig = builtins.readFile julm/irssi/config;
31 home.file.".irssi/passwd".text = ''
32 FreeNode : ${pkgs.pass}/bin/pass freenode.net/irc/julm
33 GeekNode : ${pkgs.pass}/bin/pass geeknode.org/irc/julm
34 IndyMedia : ${pkgs.pass}/bin/pass indymedia.org/irc/julm
35 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
37 programs.vim.enable = true;
38 programs.ssh.enable = true;
39 programs.ssh.matchBlocks."lan.losurdo.sourcephile.fr" = {
40 compression = true; # Helps to get a better framerate with forwardX11
42 forwardX11Trusted = true;
43 serverAliveInterval = 15;
45 programs.tmux.enable = true;
46 programs.man.enable = true;
47 manual.manpages.enable = false;
50 userName = "Julien Moutinho";
51 userEmail = "julm@sourcephile.fr";
52 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
53 signing.signByDefault = false;
55 if lib.elem config.host.name [ "losurdo" "oignon" ]
59 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
60 sendemail.smtpServer = "mail.sourcephile.fr";
61 sendemail.smtpServerPort = "465";
62 sendemail.smtpUser = "julm@sourcephile.fr";
65 services.redshift.enable = lib.mkDefault config.host.desktop;
66 xsession.enable = lib.mkDefault config.host.desktop;
67 xsession.windowManager.xmonad.enable = lib.mkDefault config.host.desktop;
68 home.stateVersion = "20.09";
69 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
70 home.sessionVariables = {
74 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
77 # Warning: triggers a rebuild of mumble
78 #nixpkgs.config.mumble.speechdSupport = lib.mkDefault config.host.desktop;
114 #pkgs.haskell.packages.ghc865.zerobin
119 pkgs.hunspellDicts.fr-moderne
130 pkgs.linuxPackages.cpupower
131 pkgs.linuxPackages.perf
141 pkgs.nix-prefetch-git
188 ] ++ lib.optionals config.host.desktop [
203 pkgs.hicolor-icon-theme
211 pkgs.networkmanager-openvpn
212 pkgs.networkmanagerapplet
216 pkgs.transmission-gtk