1 { pkgs, lib, config, hostName, ... }:
7 (import (julm/hosts + "/${hostName}.nix"))
9 host.desktop = lib.elem hostName [ /*"losurdo"*/ "oignon" ];
10 host.server = lib.elem hostName [ "losurdo" "mermet" ];
11 programs.bat.enable = true;
12 programs.bash.enable = true;
13 #programs.broot.enable = true;
15 enable = config.host.desktop;
17 let defaultProfile = {
19 "browser.bookmarks.showMobileBookmarks" = true;
20 "browser.search.isUS" = false;
21 "browser.search.region" = "FR";
22 "distribution.searchplugins.defaultLocale" = "fr-FR";
23 "general.useragent.locale" = "fr-FR";
24 "security.identityblock.show_extended_validation" = true;
25 "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
27 userChrome = builtins.readFile softwares/firefox/userChrome.css;
29 "rp4xy6ye.2021" = lib.mkMerge [defaultProfile {
33 "browser.startup.homepage" = "https://code.sourcephile.fr";
36 "8y3d28fa.tor" = lib.mkMerge [defaultProfile {
40 "browser.startup.homepage" = "https://check.torproject.org";
45 programs.gpg.enable = true;
46 home.file."${config.programs.gpg.homedir}/gpg.conf".text = ''
48 trusted-key 0xD15AF7F467E8299B
49 # julm@sourcephile.fr (2021-08-12)
50 trusted-key 0xA58CD81C3863926F
52 services.gpg-agent.enable = true;
53 services.gpg-agent.sshKeys = [
55 "D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
56 # julm@sourcephile.fr (2021-08-12)
57 "3D94D14514F1EA2B6D62F1275D888897B082415D"
59 programs.direnv.enable = true;
60 programs.htop.enable = true;
61 programs.irssi.enable = hostName == "mermet" || hostName == "losurdo";
62 programs.irssi.extraConfig = builtins.readFile julm/irssi/config;
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
71 programs.man.enable = true;
72 #programs.neovim.enable = true;
73 programs.ssh.enable = true;
74 programs.ssh.matchBlocks."lan.losurdo.sourcephile.fr" = {
75 compression = true; # Helps to get a better framerate with forwardX11
77 forwardX11Trusted = true;
78 serverAliveInterval = 15;
80 programs.tmux.enable = true;
81 programs.vim.enable = true;
82 manual.manpages.enable = false;
85 userName = "Julien Moutinho";
86 userEmail = "julm@sourcephile.fr";
87 signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
88 signing.signByDefault = false;
90 if lib.elem hostName [ "losurdo" "oignon" ]
94 sendemail.smtpEncryption = "ssl"; # Yes, "ssl", not "tls" which does not work because it expects STARTTLS.
95 sendemail.smtpServer = "mail.sourcephile.fr";
96 sendemail.smtpServerPort = "465";
97 sendemail.smtpUser = "julm@sourcephile.fr";
100 services.redshift.enable = lib.mkDefault config.host.desktop;
101 xsession.enable = lib.mkDefault config.host.desktop;
102 xsession.windowManager.xmonad.enable = lib.mkDefault config.host.desktop;
103 home.stateVersion = "20.09";
104 home.sessionPath = [ "${config.home.homeDirectory}/bin" ];
105 home.sessionVariables = {
107 LANG = "fr_FR.UTF-8";
109 LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
112 # Warning: triggers a rebuild of mumble
113 #nixpkgs.config.mumble.speechdSupport = lib.mkDefault config.host.desktop;
149 #pkgs.haskell.packages.ghc865.zerobin
154 pkgs.hunspellDicts.fr-moderne
168 #pkgs.linuxPackages.cpupower
169 #pkgs.linuxPackages.perf
173 pkgs.mastodon-archive
180 pkgs.nix-prefetch-git
232 pkgs.yubikey-personalization
234 ] ++ lib.optionals config.host.desktop [
249 pkgs.hicolor-icon-theme
257 pkgs.networkmanager-openvpn
258 pkgs.networkmanagerapplet
262 pkgs.transmission-gtk
267 pkgs.yubikey-personalization-gui