Nix (home-manager) configurations for my computers
Ignore bazel artifacts
Bazel creates "bazel-<directory name>" directory at a project root.
Some projects only ignore "bazel-<repo name>" assuming the repo is
cloned at the directory with same name. This is problematic on usecases
such as worktree or clone with name provided.
ignores =
let
+ # # Ignore all bazel-* symlinks. There is no full list since this can change
+ # based on the name of the directory bazel is cloned into.
+ bazel = [ "/bazel-*" ];
+ # Swap file
nvim = if config.programs.neovim.enable then [ ".*.swp" ] else [ ];
@@ -47,7 +51,7 @@ ".LSOverride"
]
else [ ];
in
- nvim ++ darwin;
+ nvim ++ darwin ++ bazel;
};
home.packages = [