mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
ssh: apply quotations where necessary
Also, ~ works.
This commit is contained in:
parent
e8fb8a6ddc
commit
504e8452dd
1 changed files with 4 additions and 4 deletions
|
|
@ -1,11 +1,11 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs) stdenv;
|
||||
_1passwordAgentSock =
|
||||
if stdenv.isDarwin then
|
||||
"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
|
||||
''"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"''
|
||||
else
|
||||
"${config.home.homeDirectory}/.1password/agent.sock";
|
||||
"~/.1password/agent.sock";
|
||||
in
|
||||
{
|
||||
programs.ssh = {
|
||||
|
|
@ -28,7 +28,7 @@ in
|
|||
# https://developer.1password.com/docs/ssh/agent/advanced/#match-key-with-host
|
||||
"bitbucket.org" = {
|
||||
identitiesOnly = true;
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/juspay.pub";
|
||||
identityFile = "~/.ssh/juspay.pub";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue