mirror of
https://github.com/itme-brain/nixos.git
synced 2026-05-08 14:50:12 -04:00
added rigby recovery
This commit is contained in:
parent
194bb9c381
commit
532c874c96
12 changed files with 474 additions and 0 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ in
|
|||
|
||||
environment = {
|
||||
systemPackages = with pkgs; [
|
||||
ansible
|
||||
vim
|
||||
git
|
||||
usbutils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue