mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Much change, kinda broke my git history
This commit is contained in:
parent
077322deaf
commit
4b0d80d349
13 changed files with 108 additions and 19 deletions
37
home-manager-modules/ssh-client/default.nix
Normal file
37
home-manager-modules/ssh-client/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue