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