mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Avoid multi line strings when unnecessary
This commit is contained in:
parent
33657999e2
commit
60115c4775
3 changed files with 5 additions and 15 deletions
|
|
@ -12,12 +12,8 @@
|
||||||
healthchecks.enable = true;
|
healthchecks.enable = true;
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
backupPrepareCommand = ''
|
backupPrepareCommand = "${lib.getExe' pkgs.systemd "systemctl"} stop hedgedoc.service";
|
||||||
${lib.getExe' pkgs.systemd "systemctl"} stop hedgedoc.service
|
backupCleanupCommand = "${lib.getExe' pkgs.systemd "systemctl"} start hedgedoc.service";
|
||||||
'';
|
|
||||||
backupCleanupCommand = ''
|
|
||||||
${lib.getExe' pkgs.systemd "systemctl"} start hedgedoc.service
|
|
||||||
'';
|
|
||||||
paths = [ "/var/lib/hedgedoc" ];
|
paths = [ "/var/lib/hedgedoc" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,7 @@ in
|
||||||
${lib.getExe' config.services.nextcloud.occ "nextcloud-occ"} maintenance:mode --on
|
${lib.getExe' config.services.nextcloud.occ "nextcloud-occ"} maintenance:mode --on
|
||||||
${lib.getExe' config.services.postgresql.package "pg_dump"} nextcloud --format=custom --file=${cfg.dataDir}/backup/db.dump
|
${lib.getExe' config.services.postgresql.package "pg_dump"} nextcloud --format=custom --file=${cfg.dataDir}/backup/db.dump
|
||||||
'';
|
'';
|
||||||
backupCleanupCommand = ''
|
backupCleanupCommand = "${lib.getExe' config.services.nextcloud.occ "nextcloud-occ"} maintenance:mode --off";
|
||||||
${lib.getExe' config.services.nextcloud.occ "nextcloud-occ"} maintenance:mode --off
|
|
||||||
'';
|
|
||||||
paths = [
|
paths = [
|
||||||
"${cfg.dataDir}/home/data"
|
"${cfg.dataDir}/home/data"
|
||||||
"${cfg.dataDir}/home/config/config.php"
|
"${cfg.dataDir}/home/config/config.php"
|
||||||
|
|
|
||||||
|
|
@ -22,12 +22,8 @@ in
|
||||||
healthchecks.enable = true;
|
healthchecks.enable = true;
|
||||||
|
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
backupPrepareCommand = ''
|
backupPrepareCommand = "${lib.getExe' pkgs.systemd "systemctl"} stop syncthing.service";
|
||||||
${lib.getExe' pkgs.systemd "systemctl"} stop syncthing.service
|
backupCleanupCommand = "${lib.getExe' pkgs.systemd "systemctl"} start syncthing.service";
|
||||||
'';
|
|
||||||
backupCleanupCommand = ''
|
|
||||||
${lib.getExe' pkgs.systemd "systemctl"} start syncthing.service
|
|
||||||
'';
|
|
||||||
paths = [ "/var/lib/syncthing" ];
|
paths = [ "/var/lib/syncthing" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue