aboutsummaryrefslogtreecommitdiff
path: root/home.nix
blob: 2b9ab29e6f87c67600a2c90d966a16459ea54c7d (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{ 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/wezterm.nix
    ./home/mime-apps.nix
    ./home/xdg-user-dirs.nix
    ./home/editorconfig.nix
  ];

  targets.genericLinux.enable = true;

  xdg = {
    enable = true;
    mime.enable = true;
  };

  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}/.local/share/go/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
      rm-improved
      starship
      tmux
      ripgrep
      yazi
      aria2
      figlet
      ghostty
      wezterm
      inputs.hypr-wellbeing.packages.${pkgs.system}.default
      inputs.luffy.packages.${system}.luffy
    ];
  };

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

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