Set conduit to correctly point to new mountpoint
This commit is contained in:
parent
9c2dfd483b
commit
97c065231b
|
@ -73,7 +73,7 @@ with lib;
|
||||||
global.server_name = server_name;
|
global.server_name = server_name;
|
||||||
global.port = instance.port;
|
global.port = instance.port;
|
||||||
global.allow_registration = instance.allow_registration;
|
global.allow_registration = instance.allow_registration;
|
||||||
global.database_path = "/var/lib/${srvName}/";
|
global.database_path = "/mnt/data/${srvName}/";
|
||||||
});
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -103,7 +103,8 @@ with lib;
|
||||||
"@system-service"
|
"@system-service"
|
||||||
"~@privileged"
|
"~@privileged"
|
||||||
];
|
];
|
||||||
StateDirectory = "${srvName}";
|
StateDirectory = "/mnt/data/${srvName}";
|
||||||
|
BindPaths = [ "/mnt/data/${srvName}" ];
|
||||||
ExecStart = "${cfg.package}/bin/conduit";
|
ExecStart = "${cfg.package}/bin/conduit";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 10;
|
RestartSec = 10;
|
||||||
|
|
|
@ -47,6 +47,7 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
htop-vim
|
htop-vim
|
||||||
|
kakoune
|
||||||
|
|
||||||
docker-compose
|
docker-compose
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue