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.bash.shellAliases.firefox = "sudo ip netns exec riseup sudo -u $USER firefox";
14 programs.gpg.enable = true;
15 home.file.".gnupg/gpg.conf".text = ''
17 trusted-key 0xD15AF7F467E8299B
19 trusted-key 0x2E3618DD0D087650
21 services.gpg-agent.enable = true;
22 services.gpg-agent.sshKeys = [
24 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
26 "123BF80054E9E9CE2BD7B899F07207665392B727"
28 programs.direnv.enable = true;
29 programs.direnv.enableNixDirenvIntegration = true;
30 programs.htop.enable = true;
31 programs.irssi.enable = config.host.name == "mermet" || config.host.name == "losurdo";
32 programs.irssi.extraConfig = builtins.readFile julm/irssi/config;
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 Libera : ${pkgs.pass}/bin/pass libera.chat/irc/julm
38 OFTC : ${pkgs.pass}/bin/pass oftc.net/irc/julm
39 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
41 programs.man.enable = true;
42 #programs.neovim.enable = true;
43 programs.ssh.enable = true;
44 programs.ssh.matchBlocks."lan.losurdo.sourcephile.fr" = {
45 compression = true; # Helps to get a better framerate with forwardX11
47 forwardX11Trusted = true;
48 serverAliveInterval = 15;
50 programs.tmux.enable = true;
51 programs.vim.enable = true;
52 manual.manpages.enable = false;
55 userName = "Julien Moutinho";
56 userEmail = "julm@sourcephile.fr";
57 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
58 signing.signByDefault = false;
60 if lib.elem config.host.name [ "losurdo" "oignon" ]
64 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
65 sendemail.smtpServer = "mail.sourcephile.fr";
66 sendemail.smtpServerPort = "465";
67 sendemail.smtpUser = "julm@sourcephile.fr";
70 services.redshift.enable = lib.mkDefault config.host.desktop;
71 xsession.enable = lib.mkDefault config.host.desktop;
72 xsession.windowManager.xmonad.enable = lib.mkDefault config.host.desktop;
73 home.stateVersion = "20.09";
74 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
75 home.sessionVariables = {
79 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
82 # Warning: triggers a rebuild of mumble
83 #nixpkgs.config.mumble.speechdSupport = lib.mkDefault config.host.desktop;
120 #pkgs.haskell.packages.ghc865.zerobin
125 pkgs.hunspellDicts.fr-moderne
136 pkgs.linuxPackages.cpupower
137 pkgs.linuxPackages.perf
147 pkgs.nix-prefetch-git
195 ] ++ lib.optionals config.host.desktop [
211 pkgs.hicolor-icon-theme
219 pkgs.networkmanager-openvpn
220 pkgs.networkmanagerapplet
224 pkgs.transmission-gtk