summary refs log tree commit diff stats
path: root/user/lima.nix
blob: 1bcf2647f28f1eac516b081d670da707256cbb58 (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
{ 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
  ];
  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 = {
    max-jobs = 4;
    experimental-features = "nix-command flakes";
  };
}