]> Git — Sourcephile - julm/julm-nix.git/blob - homes/julm.nix
pstree: install
[julm/julm-nix.git] / homes / julm.nix
1 { pkgs, lib, config, hostName, ... }:
2 {
3 imports = [
4 ./softwares.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 softwares/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 ];
52 programs.irssi.extraConfig = builtins.readFile julm/irssi/config;
53 home.file.".irssi/passwd".text = ''
54 FreeNode : ${pkgs.pass}/bin/pass freenode.net/irc/julm
55 GeekNode : ${pkgs.pass}/bin/pass geeknode.org/irc/julm
56 IndyMedia : ${pkgs.pass}/bin/pass indymedia.org/irc/julm
57 Libera : ${pkgs.pass}/bin/pass libera.chat/irc/julm
58 OFTC : ${pkgs.pass}/bin/pass oftc.net/irc/julm
59 ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
60 '';
61 programs.ssh.matchBlocks = lib.genAttrs ["lan.losurdo.sourcephile.fr" "losurdo.wg"] (_: {
62 compression = true; # Helps to get a better framerate with forwardX11
63 forwardX11 = true;
64 forwardX11Trusted = true;
65 serverAliveInterval = 15;
66 });
67 programs.git = {
68 userName = "Julien Moutinho";
69 userEmail = "julm@sourcephile.fr";
70 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
71 signing.signByDefault = false;
72 package =
73 if lib.elem hostName [ "losurdo" "oignon" ]
74 then pkgs.gitFull
75 else pkgs.gitMinimal;
76 extraConfig = {
77 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
78 sendemail.smtpServer = "mail.sourcephile.fr";
79 sendemail.smtpServerPort = "465";
80 sendemail.smtpUser = "julm@sourcephile.fr";
81 };
82 };
83 home.stateVersion = "20.09";
84 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
85 home.sessionVariables = {
86 EDITOR = "vim";
87 LANG = "fr_FR.UTF-8";
88 LESS = "-FRSX";
89 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
90 MANPAGER = "less";
91 };
92 }