From 22a921a71ee318221a61a6bfb72bb7015239fa9e Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 24 Aug 2023 05:54:19 +0200 Subject: lima: copy basic environment variables from mba --- user/lima.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'user') diff --git a/user/lima.nix b/user/lima.nix index 67103ffe..1bcf2647 100644 --- a/user/lima.nix +++ b/user/lima.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: { imports = [ ./modules/tabnine.nix @@ -12,8 +12,15 @@ home = { username = "alan"; homeDirectory = "/home/alan.linux"; + sessionVariables = { + GHQ_ROOT = "/Users/alan/projects"; + SSH_AUTH_SOCK = "/Users/alan/.strongbox/agent.sock"; + }; stateVersion = "22.11"; }; + programs.ssh.extraConfig = '' + IdentityAgent ${config.home.sessionVariables.SSH_AUTH_SOCK} + ''; # home-manager complains when setting nix.conf otherwise nix.package = pkgs.nix; nix.settings = { -- cgit 1.4.1