Further testing required to use a variable for the identity file path
This commit is contained in:
parent
c83d83ad35
commit
f56ab9af66
@ -103,27 +103,23 @@ in {
|
|||||||
};
|
};
|
||||||
ssh = {
|
ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraOptionOverrides = {
|
extraOptionOverrides = { AddKeysToAgent = "yes"; };
|
||||||
AddKeysToAgent = "yes";
|
|
||||||
test = "${builtins.getEnv "HOME"}";
|
|
||||||
test2 = "${builtins.getEnv "XDG_RUNTIME_DIR"}";
|
|
||||||
};
|
|
||||||
matchBlocks = [
|
matchBlocks = [
|
||||||
{
|
{
|
||||||
host = "gitlab.com";
|
host = "gitlab.com";
|
||||||
identityFile = [ "${builtins.getEnv "HOME"}/.ssh/id_ed25519_git" ];
|
identityFile = [ "/home/${user}/.ssh/id_ed25519_git" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
host = "github.com";
|
host = "github.com";
|
||||||
identityFile = [ "${builtins.getEnv "HOME"}/.ssh/id_ed25519_git" ];
|
identityFile = [ "/home/${user}/.ssh/id_ed25519_git" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
host = "gitea.exu.li";
|
host = "gitea.exu.li";
|
||||||
identityFile = [ "${builtins.getEnv "HOME"}/.ssh/id_ed25519_git" ];
|
identityFile = [ "/home/${user}/.ssh/id_ed25519_git" ];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
host = "aur.archlinux.org";
|
host = "aur.archlinux.org";
|
||||||
identityFile = [ "${builtins.getEnv "HOME"}/.ssh/id_ed25519_git" ];
|
identityFile = [ "/home/${user}/.ssh/id_ed25519_git" ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user