feat: restructure and move apps into their own configs (#2)
This commit is contained in:
40
home/programs/ssh.nix
Normal file
40
home/programs/ssh.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
device,
|
||||
...
|
||||
}: {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
github = {
|
||||
user = "git";
|
||||
host = "github.com";
|
||||
};
|
||||
deoxys = {
|
||||
user = "servius";
|
||||
hostname = "deoxys";
|
||||
forwardAgent = true;
|
||||
};
|
||||
mirai = {
|
||||
user = "fs0c131y";
|
||||
hostname = "sh.darksailor.dev";
|
||||
forwardAgent = true;
|
||||
};
|
||||
ryu = {
|
||||
user = "servius";
|
||||
hostname = "ryu";
|
||||
forwardAgent = false;
|
||||
};
|
||||
};
|
||||
serverAliveInterval = 120;
|
||||
extraConfig =
|
||||
lib.strings.optionalString pkgs.stdenv.isDarwin
|
||||
''
|
||||
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
|
||||
''
|
||||
+ lib.strings.optionalString (pkgs.stdenv.isLinux && !device.isServer) ''
|
||||
IdentityAgent ~/.1password/agent.sock
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user