julm/mutt.nix
(import (julm/hosts + "/${hostName}.nix"))
];
+host.base = lib.elem hostName [ "losurdo" "mermet" "oignon" ];
host.desktop = lib.elem hostName [ /*"losurdo"*/ "oignon" ];
host.server = lib.elem hostName [ "losurdo" "mermet" ];
host.admin = lib.elem hostName [ "losurdo" "mermet" "oignon" ];
host.developer = lib.elem hostName [ "losurdo" "oignon" ];
host.media = lib.elem hostName [ "losurdo" "oignon" ];
-programs.bat.enable = true;
-programs.bash.enable = true;
-#programs.broot.enable = true;
+programs.bat.enable = config.host.base;
+programs.bash.enable = config.host.base;
+#programs.broot.enable = config.host.base;
programs.firefox = {
enable = config.host.desktop;
profiles =
}];
};
};
-programs.gpg.enable = true;
+programs.gpg.enable = config.host.base;
home.file."${config.programs.gpg.homedir}/gpg.conf".text = ''
# julm@autogeree.net
trusted-key 0xD15AF7F467E8299B
# julm@sourcephile.fr (2021-08-12)
trusted-key 0xA58CD81C3863926F
'';
-services.gpg-agent.enable = true;
+services.gpg-agent.enable = config.host.base;
services.gpg-agent.sshKeys = [
# julm@autogeree.net
"D275EBA09C7E1FFBFB47F6EEF164E6D56FB24AB2"
# julm@sourcephile.fr (2021-08-12)
"3D94D14514F1EA2B6D62F1275D888897B082415D"
];
-programs.direnv.enable = true;
-programs.htop.enable = true;
+programs.direnv.enable = config.host.base;
+programs.htop.enable = config.host.base;
programs.irssi.enable = hostName == "mermet" || hostName == "losurdo";
programs.irssi.extraConfig = builtins.readFile julm/irssi/config;
home.file.".irssi/passwd".text = ''
OFTC : ${pkgs.pass}/bin/pass oftc.net/irc/julm
ToileLibre : ${pkgs.pass}/bin/pass toile-libre.org/irc/julm
'';
-programs.man.enable = true;
-#programs.neovim.enable = true;
-programs.ssh.enable = true;
+programs.man.enable = config.host.base;
+#programs.neovim.enable = config.host.base;
+programs.ssh.enable = config.host.base;
programs.ssh.matchBlocks."lan.losurdo.sourcephile.fr" = {
compression = true; # Helps to get a better framerate with forwardX11
forwardX11 = true;
forwardX11Trusted = true;
serverAliveInterval = 15;
};
-programs.tmux.enable = true;
-programs.vim.enable = true;
-manual.manpages.enable = true;
+programs.tmux.enable = config.host.base;
+programs.vim.enable = config.host.base;
+manual.manpages.enable = config.host.base;
programs.git = {
- enable = true;
+ enable = config.host.base;
userName = "Julien Moutinho";
userEmail = "julm@sourcephile.fr";
signing.key = "0x7182433A39582282929B2A222E3618DD0D087650";
};
# Warning: triggers a rebuild of mumble
#nixpkgs.config.mumble.speechdSupport = lib.mkDefault config.host.desktop;
-home.packages = [
+home.packages =
+ lib.optionals config.host.base [
#pkgs.amfora
pkgs.bc
#pkgs.browsh