lima: copy basic environment variables from mba
Alan Pearce alan@alanpearce.eu
Thu, 24 Aug 2023 05:54:19 +0200
1 files changed, 8 insertions(+), 1 deletions(-)
jump to
M user/lima.nix → 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 = {