test: jellyfin microVM

This commit is contained in:
Nick 2025-11-08 22:25:51 -06:00
parent b553e92ad1
commit e25c1a2e06
13 changed files with 271 additions and 358 deletions

View file

@ -1,40 +1,40 @@
{
pkgs,
lib,
flake,
osConfig,
# lib,
# flake,
# osConfig,
...
}:
let
inherit (flake.config.machines.devices) mars deimos;
hostname = osConfig.networking.hostName;
# let
# 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
'';
# 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
'';
# 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" ] (
if hostname == mars.name then
(sharedPaths + desktopPaths)
else if hostname == deimos.name then
sharedPaths
else
""
);
};
# zoxidePaths = {
# home.activation.initZoxidePaths = lib.hm.dag.entryAfter [ "writeBoundary" ] (
# if hostname == mars.name then
# (sharedPaths + desktopPaths)
# else if hostname == deimos.name then
# sharedPaths
# else
# ""
# );
# };
in
# in
{
programs.zoxide = {
enable = true;
@ -44,4 +44,4 @@ in
];
};
}
// zoxidePaths
# // zoxidePaths