summary refs log tree commit diff
path: root/modules/home/desktop.nix
blob: 10b3bf58e13e42753acc3122b155cb92d5e16ad7 (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
{ ... }:

{
  imports = [
    ./code.nix # vscode
    ./zed.nix # zed editor
  ];

  xdg.configFile = {
    # home-manager does not have the option to pass an alacritty
    # config file directly.
    "alacritty/alacritty.toml".source = ../../configs/alacritty.toml;
  };

  home.file = {
    # base .vimrc for tools outside of vim, like the
    # VSCode Vim plugin.
    ".vimrc".source = ../../configs/.vimrc;

    # special .vimrc for the IdeaVim plugin in JetBrains IDEs.
    # `source`s the normal ~/.vimrc and enables IdeaVim-specfic plugins.
    ".ideavimrc".source = ../../configs/.ideavimrc;
  };

  home.sessionPath = [
    # add scripts to launch jetbrains products to path,
    # like `clion`.
    "$HOME/.local/share/JetBrains/Toolbox/scripts"
  ];
}