]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm.nix
nixpkgs: update
[julm/julm-nix.git] / homes / julm.nix
1 { pkgs, lib, config, hostName, ... }:
2 {
3 imports = [
4 ./programs.nix
5 ./options.nix
6 julm/mutt.nix
7 (import (julm/hosts + "/${hostName}.nix"))
8 ];
9 programs.firefox = {
10 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 = builtins.readFile programs/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 "8y3d28fa.tor" = lib.mkMerge [defaultProfile {
32 id = 1;
33 name = "tor";
34 settings = {
35 "browser.startup.homepage" = "https://check.torproject.org";
36 };
37 }];
38 };
39 };
40 home.file."${config.programs.gpg.homedir}/gpg.conf".text = ''
41 # julm@autogeree.net
42 trusted-key 0xD15AF7F467E8299B
43 # julm@sourcephile.fr (2021-08-12)
44 trusted-key 0xA58CD81C3863926F
45 '';
46 services.gpg-agent.sshKeys = [
47 # julm@autogeree.net
48 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
49 # julm@sourcephile.fr (2021-08-12)
50 "3D94D14514F1EA2B6D62F1275D888897B082415D"
51 # Ed25519 key added on: 2021-10-31 06:48:49
52 # Fingerprints: MD5:fe:fe:81:79:d8:7f:e4:ff:64:ac:f3:1c:bd:65:24:3a
53 # SHA256:bCfwfC8MQTjm6c1HcMLtzvGpnWRdqLwe/bvbh2jsNaA
54 "F6CCA60CF05FADAE911CFBEC0BCDED22F40A19FD"
55 ];
56 programs.irssi.extraConfig = builtins.readFile julm/irssi/config;
57 home.file.".irssi/passwd".text = ''
58 FreeNode : ${pkgs.pass}/bin/pass freenode.net/irc/julm
59 GeekNode : ${pkgs.pass}/bin/pass geeknode.org/irc/julm
60 IndyMedia : ${pkgs.pass}/bin/pass indymedia.org/irc/julm
61 Libera : ${pkgs.pass}/bin/pass libera.chat/irc/julm
62 OFTC : ${pkgs.pass}/bin/pass oftc.net/irc/julm
63 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
64 '';
65 programs.ssh.matchBlocks = lib.genAttrs ["lan.losurdo.sourcephile.fr" "losurdo.wg"] (_: {
66 compression = true; # Helps to get a better framerate with forwardX11
67 forwardX11 = true;
68 forwardX11Trusted = true;
69 serverAliveInterval = 15;
70 });
71 programs.git = {
72 userName = "Julien Moutinho";
73 userEmail = "julm@sourcephile.fr";
74 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
75 signing.signByDefault = false;
76 package =
77 if lib.elem hostName [ "losurdo" "oignon" ]
78 then pkgs.gitFull
79 else pkgs.gitMinimal;
80 extraConfig = {
81 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
82 sendemail.smtpServer = "mail.sourcephile.fr";
83 sendemail.smtpServerPort = "465";
84 sendemail.smtpUser = "julm@sourcephile.fr";
85 };
86 };
87 home.stateVersion = "20.09";
88 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
89 home.sessionVariables = {
90 EDITOR = "vim";
91 LANG = "fr_FR.UTF-8";
92 LESS = "-FRSX";
93 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
94 MANPAGER = "less";
95 };
96 }