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;
14 enable = config.host.desktop;
15 profiles."rp4xy6ye.2021" = {
19 userChrome = builtins.readFile firefox/userChrome.css;
21 profiles."8y3d28fa.tor" = {
25 userChrome = builtins.readFile firefox/userChrome.css;
28 programs.gpg.enable = true;
29 home.file."${config.programs.gpg.homedir}/gpg.conf".text = ''
31 trusted-key 0xD15AF7F467E8299B
33 trusted-key 0x2E3618DD0D087650
35 services.gpg-agent.enable = true;
36 services.gpg-agent.sshKeys = [
38 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
40 "123BF80054E9E9CE2BD7B899F07207665392B727"
42 programs.direnv.enable = true;
43 programs.htop.enable = true;
44 programs.irssi.enable = config.host.name == "mermet" || config.host.name == "losurdo";
45 programs.irssi.extraConfig = builtins.readFile julm/irssi/config;
46 home.file.".irssi/passwd".text = ''
47 FreeNode : ${pkgs.pass}/bin/pass freenode.net/irc/julm
48 GeekNode : ${pkgs.pass}/bin/pass geeknode.org/irc/julm
49 IndyMedia : ${pkgs.pass}/bin/pass indymedia.org/irc/julm
50 Libera : ${pkgs.pass}/bin/pass libera.chat/irc/julm
51 OFTC : ${pkgs.pass}/bin/pass oftc.net/irc/julm
52 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
54 programs.man.enable = true;
55 #programs.neovim.enable = true;
56 programs.ssh.enable = true;
57 programs.ssh.matchBlocks."lan.losurdo.sourcephile.fr" = {
58 compression = true; # Helps to get a better framerate with forwardX11
60 forwardX11Trusted = true;
61 serverAliveInterval = 15;
63 programs.tmux.enable = true;
64 programs.vim.enable = true;
65 manual.manpages.enable = false;
68 userName = "Julien Moutinho";
69 userEmail = "julm@sourcephile.fr";
70 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
71 signing.signByDefault = false;
73 if lib.elem config.host.name [ "losurdo" "oignon" ]
77 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
78 sendemail.smtpServer = "mail.sourcephile.fr";
79 sendemail.smtpServerPort = "465";
80 sendemail.smtpUser = "julm@sourcephile.fr";
83 services.redshift.enable = lib.mkDefault config.host.desktop;
84 xsession.enable = lib.mkDefault config.host.desktop;
85 xsession.windowManager.xmonad.enable = lib.mkDefault config.host.desktop;
86 home.stateVersion = "20.09";
87 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
88 home.sessionVariables = {
92 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
95 # Warning: triggers a rebuild of mumble
96 #nixpkgs.config.mumble.speechdSupport = lib.mkDefault config.host.desktop;
132 #pkgs.haskell.packages.ghc865.zerobin
137 pkgs.hunspellDicts.fr-moderne
150 #pkgs.linuxPackages.cpupower
151 #pkgs.linuxPackages.perf
161 pkgs.nix-prefetch-git
211 pkgs.yubikey-personalization
213 ] ++ lib.optionals config.host.desktop [
228 pkgs.hicolor-icon-theme
236 pkgs.networkmanager-openvpn
237 pkgs.networkmanagerapplet
241 pkgs.transmission-gtk
246 pkgs.yubikey-personalization-gui