run media off of sshfs for continuwuity
This commit is contained in:
parent
0b66fef5cd
commit
2308d8042e
1 changed files with 20 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
TimeoutStartSec = "10m";
|
TimeoutStartSec = "10m";
|
||||||
Restart = lib.mkForce "always";
|
Restart = lib.mkForce "always";
|
||||||
ExecStartPost = "/bin/sh -c 'until ${lib.getExe pkgs.curl} -s -f https://matrix.federated.nexus/.well-known/matrix/client; do sleep 1; done'";
|
ExecStartPost = "/bin/sh -c 'until ${lib.getExe pkgs.curl} -s -f https://matrix.federated.nexus/.well-known/matrix/client; do sleep 1; done'";
|
||||||
|
RequiresMountsFor = [ "/var/lib/private/continuwuity/media" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
quad.matrix = rec {
|
quad.matrix = rec {
|
||||||
|
|
@ -27,4 +28,23 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.fsPackages = [
|
||||||
|
pkgs.sshfs
|
||||||
|
];
|
||||||
|
|
||||||
|
systemd.mounts = [
|
||||||
|
{
|
||||||
|
what = "u675579@u675579.your-storagebox.de:/media";
|
||||||
|
where = "/var/lib/private/continuwuity/media";
|
||||||
|
type = "fuse.sshfs";
|
||||||
|
options = builtins.concatStringsSep "," [
|
||||||
|
"_netdev"
|
||||||
|
"ServerAliveInterval=15"
|
||||||
|
"ServerAliveCountMax=3"
|
||||||
|
"IdentityFile=/home/quadradical/.ssh/id_ed25519"
|
||||||
|
"allow_other"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue