run media off of sshfs for continuwuity
This commit is contained in:
parent
0b66fef5cd
commit
1aadf2a468
1 changed files with 28 additions and 6 deletions
|
|
@ -1,10 +1,13 @@
|
||||||
{ lib, pkgs, ... }: {
|
{ lib, pkgs, ... }: {
|
||||||
systemd.services.continuwuity.serviceConfig = {
|
systemd.services.continuwuity = {
|
||||||
MemoryMax = "5.5G";
|
unitConfig.RequiresMountsFor = [ "/var/lib/private/continuwuity/media" ];
|
||||||
MemorySwapMax = "4.5G";
|
serviceConfig = {
|
||||||
TimeoutStartSec = "10m";
|
MemoryMax = "5.5G";
|
||||||
Restart = lib.mkForce "always";
|
MemorySwapMax = "4.5G";
|
||||||
ExecStartPost = "/bin/sh -c 'until ${lib.getExe pkgs.curl} -s -f https://matrix.federated.nexus/.well-known/matrix/client; do sleep 1; done'";
|
TimeoutStartSec = "10m";
|
||||||
|
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'";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
quad.matrix = rec {
|
quad.matrix = rec {
|
||||||
|
|
@ -27,4 +30,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