gitea: bind mount /var/lib/gitea

pull/55/head
Alexander 2023-12-19 16:20:28 +04:00
parent eb59d33e1f
commit 426e6f72c5
1 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,12 @@ in
};
config = lib.mkIf config.selfprivacy.modules.gitea.enable {
fileSystems = lib.mkIf sp.useBinds {
"/var/lib/gitea" = {
device = "/volumes/${sp.modules.gitea.location}/gitea";
options = [ "bind" ];
};
};
services.gitea = {
enable = true;
inherit stateDir;