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