ssh config
This commit is contained in:
parent
c7c42c178e
commit
eaa659291b
4 changed files with 53 additions and 7 deletions
|
@ -1,5 +1,13 @@
|
|||
{
|
||||
desktop-sway = import ./desktop/sway.nix;
|
||||
let
|
||||
sway = import ./desktop/sway.nix;
|
||||
in {
|
||||
home = {
|
||||
sway = sway.home;
|
||||
neovim = ./neovim;
|
||||
zsh = ./zsh.nix;
|
||||
ssh = ./ssh.nix;
|
||||
};
|
||||
global = {
|
||||
sway = sway.global;
|
||||
};
|
||||
}
|
||||
|
|
38
modules/ssh.nix
Normal file
38
modules/ssh.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
compression = true;
|
||||
serverAliveCountMax = 1;
|
||||
serverAliveInterval = 10;
|
||||
matchBlocks = {
|
||||
"*" = {
|
||||
setEnv."TERM" = "xterm-256color";
|
||||
};
|
||||
|
||||
"watcher.kat" = {
|
||||
user = "ubuntu";
|
||||
hostname = "watcher.katvayor.net";
|
||||
};
|
||||
"r86s.kat" = {
|
||||
user = "root";
|
||||
hostname = "129.199.156.112";
|
||||
proxyJump = "sas.ens";
|
||||
};
|
||||
|
||||
"sas.ens" = {
|
||||
user = "lbailly";
|
||||
hostname = "sas.eleves.ens.fr";
|
||||
};
|
||||
"degette.ens" = {
|
||||
user = "dg";
|
||||
hostname = "www.dg.ens.fr";
|
||||
proxyJump = "sas.ens";
|
||||
};
|
||||
"bocal.ens" = {
|
||||
user = "bocal";
|
||||
hostname = "fregate";
|
||||
proxyJump = "sas.ens";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{ config, pkgs, lib, mods, ... }:
|
||||
{
|
||||
imports = [ mods.desktop-sway.global ];
|
||||
imports = with mods.global; [ sway ];
|
||||
users.users.catvayor = {
|
||||
shell = pkgs.zsh;
|
||||
isNormalUser = true;
|
||||
|
@ -22,7 +22,7 @@
|
|||
home-manager.users.catvayor = {
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
imports = [ mods.neovim mods.zsh mods.desktop-sway.home ];
|
||||
imports = with mods.home; [ neovim zsh sway ssh ];
|
||||
|
||||
home.packages = with pkgs; [
|
||||
wl-clipboard
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
users.users.root.shell = pkgs.zsh;
|
||||
home-manager.users.root = {
|
||||
home.stateVersion = "23.11";
|
||||
imports = [ mods.neovim mods.zsh ];
|
||||
imports = with mods.home; [ neovim zsh ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue