summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-08-24 05:54:19 +0200
committerAlan Pearce2023-08-24 05:54:19 +0200
commit22a921a71ee318221a61a6bfb72bb7015239fa9e (patch)
tree12cab19a3e04672002e24d4859cd9171e2f3e052 /user
parentb18616fb8a7c05c6cc90fa034fafec1843b3abcc (diff)
downloadnixfiles-22a921a71ee318221a61a6bfb72bb7015239fa9e.tar.lz
nixfiles-22a921a71ee318221a61a6bfb72bb7015239fa9e.tar.zst
nixfiles-22a921a71ee318221a61a6bfb72bb7015239fa9e.zip
lima: copy basic environment variables from mba
Diffstat (limited to 'user')
-rw-r--r--user/lima.nix9
1 files changed, 8 insertions, 1 deletions
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 = {