feat: align workspace navigation with relocated projects

Use ~/yookr/projects for company repositories and ~/projects for personal groups. Add the company-root Walker entry, apply work Git identity below ~/yookr, and remove Bruno synchronization.

Filesystem relocation was previously completed on Zenith only; other hosts require their own relocation before adopting these shared paths.
This commit is contained in:
kiri committed 2026-09-09 17:32:08 +02:00
1 parent d81a59b9cb
commit 5dd1d2b296
4 files changed
+19 -16

No files matched your search

+1 -1
View File
@@ -175,7 +175,7 @@
download = "${homeDir}/downloads"; download = "${homeDir}/downloads";
documents = "${homeDir}/documents"; documents = "${homeDir}/documents";
projects = "${homeDir}/dev"; projects = "${homeDir}/projects";
music = "${mediaDir}/music"; music = "${mediaDir}/music";
pictures = "${mediaDir}/images"; pictures = "${mediaDir}/images";
videos = "${mediaDir}/videos"; videos = "${mediaDir}/videos";
+1 -1
View File
@@ -79,7 +79,7 @@ in
contents = personal.git; contents = personal.git;
} }
{ {
condition = "gitdir:${config.xdg.userDirs.projects}/work/"; condition = "gitdir:${config.home.homeDirectory}/yookr/";
contents = work.git; contents = work.git;
} }
{ {
-9
View File
@@ -41,15 +41,6 @@ in
devices = builtins.attrNames syncDevices; devices = builtins.attrNames syncDevices;
ignorePatterns = [ "**/.zk" ]; ignorePatterns = [ "**/.zk" ];
}; };
bruno = {
path =
if config.facts.machine.name == "orion" then
"${config.home.homeDirectory}/bruno"
else
"${config.xdg.userDirs.projects}/bruno";
label = "bruno";
devices = builtins.attrNames syncDevices;
};
}; };
devices = syncDevices; devices = syncDevices;
}; };
+17 -5
View File
@@ -24,14 +24,19 @@
}: }:
let let
homeDir = config.home.homeDirectory; homeDir = config.home.homeDirectory;
projectRoots = projectRoots = [
{
scope = "work";
path = "${homeDir}/yookr/projects";
}
]
++
map map
(scope: { (scope: {
inherit scope; inherit scope;
path = "${homeDir}/dev/${scope}"; path = "${config.xdg.userDirs.projects}/${scope}";
}) })
[ [
"work"
"own" "own"
"ext" "ext"
"forks" "forks"
@@ -67,7 +72,7 @@
xdg.configFile."elephant/menus/projects.lua".text = '' xdg.configFile."elephant/menus/projects.lua".text = ''
Name = "projects" Name = "projects"
NamePretty = "Projects" NamePretty = "Projects"
Description = "Git repositories" Description = "Projects and workspaces"
Icon = "folder" Icon = "folder"
Action = "${lib.getExe openProject}" Action = "${lib.getExe openProject}"
SearchName = true SearchName = true
@@ -90,7 +95,14 @@
end end
function GetEntries() function GetEntries()
local entries = {} local entries = {
{
Text = "Yookr",
Subtext = "Company workspace",
Value = "${homeDir}/yookr",
Keywords = { "work", "company", "workbench" },
},
}
for _, root in ipairs(roots) do for _, root in ipairs(roots) do
local handle = repositories(root.path) local handle = repositories(root.path)