mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 21:42:16 -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
|
let
|
||||||
inherit (moduleFunctions.instancesFunctions)
|
inherit (moduleFunctions.instancesFunctions)
|
||||||
domain0
|
domain0
|
||||||
servicePath
|
varLib
|
||||||
sslPath
|
sslPath
|
||||||
sopsPath
|
sopsPath
|
||||||
synologyName
|
synologyName
|
||||||
|
|
@ -20,7 +20,7 @@ in
|
||||||
path0 = "${sopsPath}/${name}";
|
path0 = "${sopsPath}/${name}";
|
||||||
};
|
};
|
||||||
paths = {
|
paths = {
|
||||||
path0 = "${servicePath}/${name}";
|
path0 = "${varLib}/${name}";
|
||||||
};
|
};
|
||||||
domains = {
|
domains = {
|
||||||
url0 = domain;
|
url0 = domain;
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
forgejo.serviceConfig.ExecStartPre = [
|
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}"
|
"+${pkgs.coreutils}/bin/chmod 0750 ${backupPath}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
@ -121,9 +122,6 @@ in
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
|
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
|
||||||
"Z ${service.sops.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 = [
|
users.users.${service.name}.extraGroups = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue