about summary refs log tree commit diff
path: root/home/profiles/home.nix
blob: 42517b98ec3dbf26d0792404f4e5a4b0e961e124 (plain) (blame)
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
{ config, lib, pkgs, ... }:
{
  imports = [
    ./git.nix
    ./ssh.nix
    ./zsh.nix
  ];

  home.packages = with pkgs; [
    dive # explore layers in docker images
    jq
    ripgrep
    util-linux
    xdg-utils

    age
    rage
    age-plugin-yubikey

    # tools inside the tools directory
    tools.git-blame-stats
    tools.git-broom
    tools.ipconverter
    tools.seqstat

    # tools from external repositories
    # x509-info
    # gh-ssh-keys
    # masked-emails
  ];

  programs.direnv = {
    enable = true;
    nix-direnv.enable = true;
    config = {
      global.disable_stdin = true;
      global.strict_env = true;
    };
  };

  xdg = {
    enable = true;
    # File types
    mime.enable = true;
    # File associatons
    mimeApps = { enable = true; };
    # User directories
    userDirs = {
      enable = true;
      createDirectories = true;
      desktop = "${config.home.homeDirectory}/documents";
      documents = "${config.home.homeDirectory}/documents";
      download = "${config.home.homeDirectory}/downloads";
      music = "${config.home.homeDirectory}/media/music";
      pictures = "${config.home.homeDirectory}/media/pictures";
      publicShare = "${config.home.homeDirectory}/documents/public";
      templates = "${config.home.homeDirectory}/documents/templates";
      videos = "${config.home.homeDirectory}/media/videos";
    };
  };

  home.sessionVariables = with config.xdg; {
    LESS = "-FRSXM";
    LESSCHARSET = "utf-8";
    LESSHISTFILE = "${dataHome}/less/history";
    LESSKEY = "${configHome}/less/lesskey";
    PAGER = "less";
  };
}