summaryrefslogtreecommitdiff
path: root/machines/vm/home.nix
blob: e5b709d11e8e7388fc6c104a6f929fae6a3ecb31 (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
{ pkgs, ... }:

{
  home = {
    username = "compromyse";
    homeDirectory = "/home/compromyse";
  };

  home.packages = with pkgs; [
    wget

    tmux
    fzf
    fd
    ripgrep

    unzip
    zip

    git-lfs
  ];

  programs = {
    direnv = {
      enable = true;
      enableBashIntegration = true;
      nix-direnv.enable = true;
    };

    bash.enable = true;
  };

  programs.bash.initExtra = ''
    . "$HOME/.nix-profile/etc/profile.d/nix.sh"
    alias ls="ls --color=auto"
  '';

  imports = (map (path: ../../config/${path}) [
    "bash.nix"
    "dotfiles.nix"
    "git"
    "nvim"
    "emacs"
  ]);

  home.stateVersion = "23.11";
  programs.home-manager.enable = true;
}