aboutsummaryrefslogtreecommitdiff
path: root/home.nix
blob: 3e430ae3cdf5e3d8480601e8381f3f9ca4b5f91e (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
{ config, pkgs, inputs, ... }:

{
  imports = [
    ./home/nix.nix
    ./home/git.nix
    ./home/bat.nix
    ./home/eza.nix
    ./home/fzf.nix
    ./home/zsh.nix
    ./home/gpg.nix
    ./home/tmux.nix
    ./home/starship.nix
    ./home/ghostty.nix
    ./home/mime-apps.nix
    ./home/xdg-user-dirs.nix
    ./home/editorconfig.nix
  ];

  home = {
    username = "swarn";
    homeDirectory = "/home/swarn";

    stateVersion = "25.11";

    sessionPath = [
      "${config.home.homeDirectory}/.local/bin"
      "${config.home.homeDirectory}/.local/bin/statusbar"
      "${config.home.homeDirectory}/.local/share/cargo/bin"
      "${config.home.homeDirectory}/Applications"
      "${config.home.homeDirectory}/dox/jai/bin"
    ];

    sessionVariables = {
      EDITOR = "nvim";
      BROWSER = "helium-browser";
      TERMINAL = "ghostty";

      ZDOTDIR = "${config.home.homeDirectory}/.config/zsh";
    };

    packages = with pkgs; [
      zsh
      zinit
      bat
      eza
      fzf
      git
      duf
      zoxide
      starship
      tmux
      ripgrep
      inputs.hypr-wellbeing.packages.${pkgs.system}.default
      inputs.luffy.packages.${system}.luffy
    ];
  };

  programs = {
    home-manager.enable = true;
  };

  systemd.user.startServices = "sd-switch";
}