Much change, kinda broke my git history

This commit is contained in:
Julien Malka 2021-12-22 22:16:48 +01:00
parent 077322deaf
commit 4b0d80d349
13 changed files with 108 additions and 19 deletions

View file

@ -29,7 +29,7 @@ with lib;
msmtp.enable = true;
primary = true;
realName = "Julien Malka";
passwordCommand = "${pkgs.gnupg}/bin/gpg -q --batch --passphrase-file /home/julien/email-passphrase -d ${./ens.pass.gpg}";
passwordCommand = "cat /home/julien/.config/ens-mail-passwd";
smtp = {
host = "clipper.ens.fr";
};

View file

@ -54,6 +54,7 @@ with lib;
rnix-lsp
tree-sitter
sumneko-lua-language-server
ripgrep
];
extraConfig = ''
luafile ${./lua}/lsp.lua

View file

@ -0,0 +1,37 @@
{ config, pkgs, lib, ... }:
let
cfg = config.luj.programs.ssh-client;
in
with lib;
{
options.luj.programs.ssh-client = {
enable = mkEnableOption "Enable ssh client";
};
config = mkIf cfg.enable {
programs.ssh = {
enable = true;
matchBlocks = {
newton = {
hostname = "newton.julienmalka.me";
user = "julien";
port = 45;
};
lisa = {
hostname = "2a01:e0a:5f9:9681:5880:c9ff:fe9f:3dfb";
user = "julien";
# port = 45;
};
newton-init = {
hostname = "newton.julienmalka.me";
user = "root";
port = 2222;
};
sas = {
hostname = "sas.eleves.ens.fr";
user = "jmalka";
};
};
};
};
}