1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
+ forward X11
+ ssh config
+ agent timeout
This commit is contained in:
Kierán Meinhardt
2018-10-06 10:39:04 +02:00
parent 9ba28fca7c
commit af92980f62
2 changed files with 14 additions and 4 deletions

View File

@@ -57,11 +57,12 @@ in {
];
};
services.openssh.enable = true;
programs.ssh = {
startAgent = true;
agentTimeout = "10m";
knownHosts = [];
};
services.openssh.forwardX11 = true;
programs.tmux = {
enable = true;
@@ -186,11 +187,12 @@ in {
home.file = {
".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/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";
};
};

8
dot/ssh.nix Normal file
View 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" ]