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