From 03497aebc9ae18db7060bf11e25d448bac4d1098 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Thu, 20 Jul 2023 23:38:03 +0200 Subject: [PATCH] pin bacula to 9.6.7 --- modules/bacula.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/bacula.nix b/modules/bacula.nix index bc688a0..4cdde1c 100644 --- a/modules/bacula.nix +++ b/modules/bacula.nix @@ -27,6 +27,14 @@ let ${fd_cfg.extraMessagesConfig} } ''; + # AGDSN is running an outdated version that we have to comply to + bacula_package = (pkgs.bacula.overrideAttrs (old: rec { + version = "9.6.7"; + src = pkgs.fetchurl { + url = "mirror://sourceforge/bacula/${old.pname}-${version}.tar.gz"; + sha256 = "sha256-3w+FJezbo4DnS1N8pxrfO3WWWT8CGJtZqw6//IXMyN4="; + }; + })); in { sops.secrets = { @@ -64,5 +72,5 @@ in Password = @${config.sops.secrets."bacula/password".path} } ''; - systemd.services.bacula-fd.serviceConfig.ExecStart = lib.mkForce "${pkgs.bacula}/sbin/bacula-fd -f -u root -g bacula -c ${fd_conf}"; + systemd.services.bacula-fd.serviceConfig.ExecStart = lib.mkForce "${bacula_package}/sbin/bacula-fd -f -u root -g bacula -c ${fd_conf}"; }