summary refs log tree commit diff stats
path: root/user/lima.nix
blob: 779d5af8c96a713138846b27cb5f9a12f6969252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ config, pkgs, ... }:
{
  imports = [
    ./modules/tabnine.nix
    ./settings/base.nix
    ./settings/development/base.nix
    ./settings/git.nix
    ./settings/nix.nix
    ./settings/nixos.nix
    ./settings/ssh.nix
    ./settings/fish.nix
  ];
  home = {
    username = "alan";
    homeDirectory = "/home/alan.linux";
    sessionVariables = {
      GHQ_ROOT = "/Users/alan/projects";
      SSH_AUTH_SOCK = "/Users/alan/.strongbox/agent.sock";
    };
    stateVersion = "23.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 = {
    max-jobs = 4;
    experimental-features = "nix-command flakes";
  };
}