The Great Modularization
This commit is contained in:
parent
e0b7d60a8d
commit
eb279f1f65
34 changed files with 1356 additions and 1286 deletions
22
modules/nixos/ssh.nix
Normal file
22
modules/nixos/ssh.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.ssh = {
|
||||
startAgent = true;
|
||||
enableAskPassword = true;
|
||||
extraConfig = "
|
||||
Host gameserver
|
||||
Hostname 192.168.2.221
|
||||
Port 22
|
||||
User wo2w
|
||||
IdentityFile /home/wo2w/.ssh/ssh-key
|
||||
";
|
||||
};
|
||||
|
||||
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