fish: move univ-repos to a non-standard place

This commit is contained in:
Primrose 2024-11-15 18:16:54 +01:00
parent d49561657e
commit 8c73dfb8c5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 19 additions and 7 deletions

View file

@ -17,12 +17,20 @@
config = {
home = {
sessionVariables = lib.mapAttrs (_: path: "${config.home.homeDirectory}/${path}") {
REPO_PATH = "repo";
UNIV_REPO_PATH = "univ-repo";
PLAYGROUND_PATH = "playground";
WORKTREE_PATH = "worktree";
};
sessionVariables = lib.attrsets.mergeAttrsList [
(lib.mapAttrs (_: path: "${config.home.homeDirectory}/${path}") {
REPO_PATH = "repo";
UNIV_REPO_PATH = "univ-repo";
PLAYGROUND_PATH = "playground";
WORKTREE_PATH = "worktree";
})
{
TMUX_SESSIONIZER_SOURCE = ''
fd . \$UNIV_REPO_PATH --exact-depth 2 --type d
'';
}
];
packages = [ pkgs.vivid ];
};