···
FDPort = ${toString fd_cfg.port};
18
-
WorkingDirectory = "${libDir}";
19
-
Pid Directory = "/run";
18
+
WorkingDirectory = ${libDir};
19
+
Pid Directory = /run;
${fd_cfg.extraClientConfig}
${concatStringsSep "\n" (mapAttrsToList (name: value: ''
26
-
Password = "${value.password}";
27
-
Monitor = "${value.monitor}";
26
+
Password = ${value.password};
27
+
Monitor = ${value.monitor};
···
SDPort = ${toString sd_cfg.port};
44
-
WorkingDirectory = "${libDir}";
45
-
Pid Directory = "/run";
44
+
WorkingDirectory = ${libDir};
45
+
Pid Directory = /run;
${sd_cfg.extraStorageConfig}
···
Device = ${concatStringsSep ", " (map (a: "\"${a}\"") value.devices)};
53
-
Changer Device = "${value.changerDevice}";
54
-
Changer Command = "${value.changerCommand}";
53
+
Changer Device = ${value.changerDevice};
54
+
Changer Command = ${value.changerCommand};
${value.extraAutochangerConfig}
···
${concatStringsSep "\n" (mapAttrsToList (name: value: ''
62
-
Archive Device = "${value.archiveDevice}";
63
-
Media Type = "${value.mediaType}";
62
+
Archive Device = ${value.archiveDevice};
63
+
Media Type = ${value.mediaType};
${value.extraDeviceConfig}
···
${concatStringsSep "\n" (mapAttrsToList (name: value: ''
71
-
Password = "${value.password}";
72
-
Monitor = "${value.monitor}";
71
+
Password = ${value.password};
72
+
Monitor = ${value.monitor};
···
Name = "${dir_cfg.name}";
88
-
Password = "${dir_cfg.password}";
88
+
Password = ${dir_cfg.password};
DirPort = ${toString dir_cfg.port};
90
-
Working Directory = "${libDir}";
91
-
Pid Directory = "/run/";
92
-
QueryFile = "${pkgs.bacula}/etc/query.sql";
90
+
Working Directory = ${libDir};
91
+
Pid Directory = /run/;
92
+
QueryFile = ${pkgs.bacula}/etc/query.sql;
${dir_cfg.extraDirectorConfig}
97
-
Name = "PostgreSQL";
···
536
-
services.postgresql.enable = dir_cfg.enable == true;
536
+
services.postgresql.enable = lib.mkIf dir_cfg.enable true;
systemd.services.bacula-dir = mkIf dir_cfg.enable {
after = [ "network.target" "postgresql.service" ];