common: move to modules, move some files out, modules: adjust dir structure
This commit is contained in:
parent
ed5f8c3ae6
commit
0bc9abc4c0
43 changed files with 86 additions and 83 deletions
26
modules/nixos/programs/ssh.nix
Executable file
26
modules/nixos/programs/ssh.nix
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.ssh = {
|
||||
startAgent = true;
|
||||
enableAskPassword = true;
|
||||
extraConfig = "
|
||||
IdentityFile /home/wo2w/.ssh/ssh-key
|
||||
User wo2w
|
||||
Host gameserver
|
||||
Hostname 192.168.2.221
|
||||
Port 22
|
||||
Host Swordsmachine
|
||||
Hostname 192.168.2.84
|
||||
Port 8743
|
||||
Host Earthmover
|
||||
Hostname 192.168.2.87
|
||||
Port 8743
|
||||
";
|
||||
};
|
||||
|
||||
environment = {
|
||||
systemPackages = if config.services.desktopManager.plasma6.enable then with pkgs; [ kdePackages.ksshaskpass ] else [];
|
||||
variables.SSH_ASKPASS_REQUIRE = "prefer";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue