mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: added syncthing
This commit is contained in:
parent
e36358aff7
commit
7cbeadc253
2 changed files with 4 additions and 6 deletions
|
|
@ -2,7 +2,7 @@
|
|||
let
|
||||
inherit (moduleFunctions.instancesFunctions)
|
||||
domain0
|
||||
servicePath
|
||||
varLib
|
||||
sslPath
|
||||
sopsPath
|
||||
synologyName
|
||||
|
|
@ -20,7 +20,7 @@ in
|
|||
path0 = "${sopsPath}/${name}";
|
||||
};
|
||||
paths = {
|
||||
path0 = "${servicePath}/${name}";
|
||||
path0 = "${varLib}/${name}";
|
||||
};
|
||||
domains = {
|
||||
url0 = domain;
|
||||
|
|
|
|||
|
|
@ -113,7 +113,8 @@ in
|
|||
};
|
||||
};
|
||||
forgejo.serviceConfig.ExecStartPre = [
|
||||
"+${pkgs.coreutils}/bin/chgrp ${syncthing.name} ${backupPath}"
|
||||
"+${pkgs.coreutils}/bin/mkdir -p ${backupPath}"
|
||||
"+${pkgs.coreutils}/bin/chown ${service.name}:${syncthing.name} ${backupPath}"
|
||||
"+${pkgs.coreutils}/bin/chmod 0750 ${backupPath}"
|
||||
];
|
||||
};
|
||||
|
|
@ -121,9 +122,6 @@ in
|
|||
systemd.tmpfiles.rules = [
|
||||
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
|
||||
"Z ${service.sops.path0} 755 ${service.name} ${service.name} -"
|
||||
|
||||
"d ${backupPath} 0750 ${service.name} ${syncthing.name} -"
|
||||
|
||||
];
|
||||
|
||||
users.users.${service.name}.extraGroups = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue