]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm.nix
caja: use extensions
[julm/julm-nix.git] / homes / julm.nix
1 { pkgs, lib, config, hostName, ... }:
2 {
3 imports = [
4 ./programs.nix
5 ./options.nix
6 julm/mutt.nix
7 (import (julm/hosts + "/${hostName}.nix"))
8 ];
9 programs.firefox.profiles =
10 let defaultProfile = {
11 settings = {
12 "browser.bookmarks.showMobileBookmarks" = true;
13 "browser.compactmode.show" = true;
14 "browser.search.isUS" = false;
15 "browser.search.region" = "FR";
16 "distribution.searchplugins.defaultLocale" = "fr-FR";
17 "general.useragent.locale" = "fr-FR";
18 "security.identityblock.show_extended_validation" = true;
19 "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
20 };
21 userChrome = builtins.readFile programs/firefox/userChrome.css;
22 }; in {
23 "rp4xy6ye.2021" = lib.mkMerge [defaultProfile {
24 id = 0;
25 name = "2021";
26 settings = {
27 "browser.startup.homepage" = "https://code.sourcephile.fr";
28 };
29 }];
30 "8y3d28fa.tor" = lib.mkMerge [defaultProfile {
31 id = 1;
32 name = "tor";
33 settings = {
34 "browser.startup.homepage" = "https://check.torproject.org";
35 };
36 }];
37 };
38 home.file."${config.programs.gpg.homedir}/gpg.conf".text = ''
39 # julm@autogeree.net
40 trusted-key 0xD15AF7F467E8299B
41 # julm@sourcephile.fr (2021-08-12)
42 trusted-key 0xA58CD81C3863926F
43 '';
44 services.gpg-agent.sshKeys = [
45 # julm@autogeree.net
46 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
47 # julm@sourcephile.fr (2021-08-12)
48 "3D94D14514F1EA2B6D62F1275D888897B082415D"
49 # Ed25519 key added on: 2021-10-31 06:48:49
50 # Fingerprints: MD5:fe:fe:81:79:d8:7f:e4:ff:64:ac:f3:1c:bd:65:24:3a
51 # SHA256:bCfwfC8MQTjm6c1HcMLtzvGpnWRdqLwe/bvbh2jsNaA
52 "F6CCA60CF05FADAE911CFBEC0BCDED22F40A19FD"
53 ];
54 programs.irssi.extraConfig = builtins.readFile julm/irssi/config;
55 home.file.".irssi/passwd".text = ''
56 FreeNode : ${pkgs.pass}/bin/pass freenode.net/irc/julm
57 GeekNode : ${pkgs.pass}/bin/pass geeknode.org/irc/julm
58 IndyMedia : ${pkgs.pass}/bin/pass indymedia.org/irc/julm
59 Libera : ${pkgs.pass}/bin/pass libera.chat/irc/julm
60 OFTC : ${pkgs.pass}/bin/pass oftc.net/irc/julm
61 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
62 '';
63 programs.ssh.matchBlocks = lib.genAttrs ["lan.losurdo.sourcephile.fr" "losurdo.wg"] (_: {
64 compression = true; # Helps to get a better framerate with forwardX11
65 forwardX11 = true;
66 forwardX11Trusted = true;
67 serverAliveInterval = 15;
68 });
69 programs.git = {
70 userName = "Julien Moutinho";
71 userEmail = "julm@sourcephile.fr";
72 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
73 signing.signByDefault = false;
74 package =
75 if lib.elem hostName [ "losurdo" "oignon" ]
76 then pkgs.gitFull
77 else pkgs.gitMinimal;
78 extraConfig = {
79 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
80 sendemail.smtpServer = "mail.sourcephile.fr";
81 sendemail.smtpServerPort = "465";
82 sendemail.smtpUser = "julm@sourcephile.fr";
83 };
84 };
85 home.stateVersion = "20.09";
86 }