mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: fixed zoxide paths
This commit is contained in:
parent
a6372606b0
commit
31618fcacf
1 changed files with 24 additions and 14 deletions
|
|
@ -6,24 +6,34 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.machines.devices) ceres;
|
||||
inherit (flake.config.machines.devices) mars deimos;
|
||||
hostname = osConfig.networking.hostName;
|
||||
|
||||
sharedPaths = ''
|
||||
${pkgs.zoxide}/bin/zoxide add ~/projects/dotfiles
|
||||
${pkgs.zoxide}/bin/zoxide add ~/downloads
|
||||
${pkgs.zoxide}/bin/zoxide add ~/projects
|
||||
${pkgs.zoxide}/bin/zoxide add /mnt/media/ceres/jellyfin
|
||||
${pkgs.zoxide}/bin/zoxide add /mnt/media/ceres/comfyui
|
||||
'';
|
||||
|
||||
desktopPaths = ''
|
||||
${pkgs.zoxide}/bin/zoxide add ~/projects/website
|
||||
${pkgs.zoxide}/bin/zoxide add ~/projects/workflowbuilder
|
||||
${pkgs.zoxide}/bin/zoxide add /mnt/media/storage
|
||||
'';
|
||||
|
||||
zoxidePaths = {
|
||||
home.activation.initZoxidePaths = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
${pkgs.zoxide}/bin/zoxide add ~/projects/dotfiles
|
||||
${pkgs.zoxide}/bin/zoxide add ~/projects/website
|
||||
${pkgs.zoxide}/bin/zoxide add ~/projects/workflowbuilder
|
||||
${pkgs.zoxide}/bin/zoxide add ~/downloads
|
||||
${pkgs.zoxide}/bin/zoxide add ~/projects
|
||||
${pkgs.zoxide}/bin/zoxide add /mnt/media/ceres/jellyfin
|
||||
${pkgs.zoxide}/bin/zoxide add /mnt/media/ceres/comfyui
|
||||
${pkgs.zoxide}/bin/zoxide add /mnt/media/synology/nick
|
||||
${pkgs.zoxide}/bin/zoxide add /mnt/media/storage
|
||||
'';
|
||||
home.activation.initZoxidePaths = lib.hm.dag.entryAfter [ "writeBoundary" ] (
|
||||
if hostname == mars.name then
|
||||
sharedPaths ++ desktopPaths
|
||||
else if hostname == deimos.name then
|
||||
sharedPaths
|
||||
else
|
||||
""
|
||||
);
|
||||
};
|
||||
|
||||
deviceLogic = if hostname == ceres.name then { } else zoxidePaths;
|
||||
in
|
||||
{
|
||||
programs.zoxide = {
|
||||
|
|
@ -34,4 +44,4 @@ in
|
|||
];
|
||||
};
|
||||
}
|
||||
// deviceLogic
|
||||
// zoxidePaths
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue