mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
SSH
+ forward X11 + ssh config + agent timeout
This commit is contained in:
10
config.nix
10
config.nix
@@ -57,11 +57,12 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.openssh.enable = true;
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
startAgent = true;
|
startAgent = true;
|
||||||
|
agentTimeout = "10m";
|
||||||
knownHosts = [];
|
knownHosts = [];
|
||||||
};
|
};
|
||||||
|
services.openssh.forwardX11 = true;
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -186,11 +187,12 @@ in {
|
|||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
".background-image".source = config.constants.wallpaper;
|
".background-image".source = config.constants.wallpaper;
|
||||||
".ghci".text = import ./dot/ghci.nix { inherit pkgs; };
|
|
||||||
".stack/config.yaml".text = import ./dot/stack.nix { user = config.constants.user; };
|
|
||||||
".config/zathura/zathurarc".text = "set selection-clipboard clipboard";
|
|
||||||
".config/mpv/input.conf".text = import ./dot/mpv.nix;
|
".config/mpv/input.conf".text = import ./dot/mpv.nix;
|
||||||
".config/xfce4/terminal/terminalrc".text = import ./dot/terminal.nix;
|
".config/xfce4/terminal/terminalrc".text = import ./dot/terminal.nix;
|
||||||
|
".config/zathura/zathurarc".text = "set selection-clipboard clipboard";
|
||||||
|
".ghci".text = import ./dot/ghci.nix { inherit pkgs; };
|
||||||
|
".ssh/config".text = import ./dot/ssh.nix { inherit lib; };
|
||||||
|
".stack/config.yaml".text = import ./dot/stack.nix { user = config.constants.user; };
|
||||||
".zshrc".text = "# nothing to see here";
|
".zshrc".text = "# nothing to see here";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
8
dot/ssh.nix
Normal file
8
dot/ssh.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ lib }:
|
||||||
|
with lib;
|
||||||
|
let huServer = name: ''
|
||||||
|
Host ${name}
|
||||||
|
HostName ${name}.informatik.hu-berlin.de
|
||||||
|
User ${(import ../secrets.nix).eduroam.identity}
|
||||||
|
'';
|
||||||
|
in strings.concatMapStringsSep "\n\n" huServer [ "rabe" "star" "gruenau" "gruenau1" "gruenau2" "gruenau3" "gruenau4" "gruenau5" "gruenau6" "gruenau7" "gruenau8" ]
|
||||||
Reference in New Issue
Block a user