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