Commit ce9137b3 authored by Pedro Alves's avatar Pedro Alves
Browse files

nixos/autobrr: make use of package option

The package option was defined, but the generated systemd service was
hardcoded to use pkgs.autobrr.
parent 6c64d6da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ in
        LoadCredential = "sessionSecret:${cfg.secretFile}";
        StateDirectory = "autobrr";
        ExecStartPre = "${lib.getExe pkgs.bash} -c '${templaterCmd}'";
        ExecStart = "${lib.getExe pkgs.autobrr} --config %S/autobrr";
        ExecStart = "${lib.getExe cfg.package} --config %S/autobrr";
        Restart = "on-failure";
      };
    };