]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm.nix
nix: enable overriding nix.registry.nixpkgs
[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 "rp4xy6ye.2021" = lib.mkMerge [defaultProfile {
30 id = 0;
31 name = "2021";
32 settings = {
33 "browser.startup.homepage" = "https://code.sourcephile.fr";
34 };
35 }];
36 };
37 home.file."${config.programs.gpg.homedir}/gpg.conf".text = ''
38 # julm@autogeree.net
39 trusted-key 0xD15AF7F467E8299B
40 # julm@sourcephile.fr (2021-08-12)
41 trusted-key 0xA58CD81C3863926F
42 '';
43 services.gpg-agent.sshKeys = [
44 # julm@autogeree.net
45 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
46 # julm@sourcephile.fr (2021-08-12)
47 "3D94D14514F1EA2B6D62F1275D888897B082415D"
48 # Ed25519 key added on: 2021-10-31 06:48:49
49 # Fingerprints: MD5:fe:fe:81:79:d8:7f:e4:ff:64:ac:f3:1c:bd:65:24:3a
50 # SHA256:bCfwfC8MQTjm6c1HcMLtzvGpnWRdqLwe/bvbh2jsNaA
51 "F6CCA60CF05FADAE911CFBEC0BCDED22F40A19FD"
52 ];
53 programs.irssi.extraConfig = lib.readFile julm/irssi/config;
54 xdg.configFile."doom-config/config.el".text = lib.readFile julm/emacs/config.el;
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 extraConfig = {
75 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
76 sendemail.smtpServer = "mail.sourcephile.fr";
77 sendemail.smtpServerPort = "465";
78 sendemail.smtpUser = "julm@sourcephile.fr";
79 };
80 };
81 home.stateVersion = "20.09";
82 }