mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 13:19:09 +02:00
feat[server]: storage migration finished
This commit is contained in:
parent
c6539ed484
commit
3422a39da5
94 changed files with 1963 additions and 1626 deletions
|
|
@ -47,8 +47,10 @@ in
|
|||
node-exporter = confLib.mkIds 987;
|
||||
grafana = confLib.mkIds 974;
|
||||
};
|
||||
groups.nextcloud-exporter = { };
|
||||
users = {
|
||||
nextcloud-exporter = {
|
||||
group = "nextcloud-exporter";
|
||||
extraGroups = [ "nextcloud" ];
|
||||
};
|
||||
|
||||
|
|
@ -78,10 +80,17 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
environment.persistence."/state" = lib.mkIf config.swarselsystems.isMicroVM {
|
||||
directories = [
|
||||
{ directory = "/var/lib/${serviceName}"; user = serviceUser; group = serviceGroup; }
|
||||
{ directory = "/var/lib/prometheus2"; user = prometheusUser; group = prometheusGroup; }
|
||||
];
|
||||
};
|
||||
|
||||
services = {
|
||||
${serviceName} = {
|
||||
enable = true;
|
||||
dataDir = "/Vault/data/${serviceName}";
|
||||
dataDir = "/var/lib/${serviceName}";
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.settings = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue