Set conduit to correctly point to new mountpoint

This commit is contained in:
Natsu Kagami 2024-01-26 13:44:46 +01:00
parent 9c2dfd483b
commit 97c065231b
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -47,6 +47,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
htop-vim htop-vim
kakoune
docker-compose docker-compose
]; ];