From 504e8452ddb74adbd0490c2858682819bf04ec7d Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Tue, 13 Feb 2024 09:18:47 -0500 Subject: [PATCH] ssh: apply quotations where necessary Also, ~ works. --- home/ssh.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/ssh.nix b/home/ssh.nix index 22fc7ac..02c1a1f 100644 --- a/home/ssh.nix +++ b/home/ssh.nix @@ -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"; }; }; };