···
FDPort = ${toString fd_cfg.port};
-
WorkingDirectory = "${libDir}";
-
Pid Directory = "/run";
${fd_cfg.extraClientConfig}
${concatStringsSep "\n" (mapAttrsToList (name: value: ''
-
Password = "${value.password}";
-
Monitor = "${value.monitor}";
···
SDPort = ${toString sd_cfg.port};
-
WorkingDirectory = "${libDir}";
-
Pid Directory = "/run";
${sd_cfg.extraStorageConfig}
···
Device = ${concatStringsSep ", " (map (a: "\"${a}\"") value.devices)};
-
Changer Device = "${value.changerDevice}";
-
Changer Command = "${value.changerCommand}";
${value.extraAutochangerConfig}
···
${concatStringsSep "\n" (mapAttrsToList (name: value: ''
-
Archive Device = "${value.archiveDevice}";
-
Media Type = "${value.mediaType}";
${value.extraDeviceConfig}
···
${concatStringsSep "\n" (mapAttrsToList (name: value: ''
-
Password = "${value.password}";
-
Monitor = "${value.monitor}";
···
Name = "${dir_cfg.name}";
-
Password = "${dir_cfg.password}";
DirPort = ${toString dir_cfg.port};
-
Working Directory = "${libDir}";
-
Pid Directory = "/run/";
-
QueryFile = "${pkgs.bacula}/etc/query.sql";
${dir_cfg.extraDirectorConfig}
···
-
services.postgresql.enable = dir_cfg.enable == true;
systemd.services.bacula-dir = mkIf dir_cfg.enable {
after = [ "network.target" "postgresql.service" ];