added rigby recovery

This commit is contained in:
Bryan Ramos 2026-04-10 22:05:59 -04:00
parent 194bb9c381
commit 532c874c96
12 changed files with 474 additions and 0 deletions

View file

@ -34,6 +34,23 @@
};
};
systemd.user.services.comfy-mount = {
Unit = {
Description = "Mount ComfyUI outputs via SSHFS";
After = [ "network-online.target" ];
};
Service = {
Type = "oneshot";
RemainAfterExit = true;
ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p %h/Media/Comfy";
ExecStart = "${pkgs.sshfs}/bin/sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 rigby:/home/comfy/ComfyUI/output %h/Media/Comfy";
ExecStop = "${pkgs.fuse}/bin/fusermount -u %h/Media/Comfy";
};
Install = {
WantedBy = [ "default.target" ];
};
};
programs.ssh = {
enable = true;
enableDefaultConfig = false;
@ -46,6 +63,10 @@
hostname = "192.168.0.154";
user = "bryan";
};
"rigby" = {
hostname = "192.168.0.23";
user = "bryan";
};
};
};