aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/default.nix
blob: 533168437646a88df8fe8ac866ffc51f7cafb08a (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{ pkgs, lib, config, dina, ... }:

{
  imports = [
    ./aerc.nix
    ./claude.nix
    ./git.nix
    ./ghostty.nix
    ./helium.nix
    ./herdr.nix
    ./onepassword.nix
    ./starship.nix
    ./tmux.nix
    ./lazygit.nix
    ./twm.nix
    ./zsh.nix
  ];

  home = {
    homeDirectory = lib.mkForce (
      if pkgs.stdenv.isDarwin
      then "/Users/${config.home.username}"
      else "/home/${config.home.username}"
    );
    # Do not change this after the first installation
    stateVersion = "24.11";

    # Fetch private Go modules directly via git (ssh) instead of the public
    # proxy/checksum DB. Matches the sokkel.dev https->ssh rewrite in git.nix.
    sessionVariables.GOPRIVATE = "sokkel.dev,simenandre.no";
  };

  home.packages = with pkgs; [
    aerc
    dina.packages.${pkgs.stdenv.hostPlatform.system}.default
    delta
    forgejo-cli
    fzf
    gh
    ghq
    git-get
    htop
    jq
    kubectl
    lazygit
    nodejs_22
    postgresql
    ripgrep
    starship
    talosctl
    tmux
    tree
    tree-sitter
    twm
    yq
    go-task
    opencode
  ];

  programs.go.enable = true;

  # Let home-manager manage itself
  programs.home-manager.enable = true;
}