feat(subs): start setting up bazarr-bulk
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-05-16 22:46:44 -04:00
parent 9ee721e52f
commit 8f08976322
3 changed files with 21 additions and 1 deletions

View file

@ -1,5 +1,7 @@
{
bazarr-bulk,
config,
lib,
pkgs,
subsync,
...
@ -7,12 +9,30 @@
inherit (config.vars) mainUser;
subsyncPkg = subsync.packages.${pkgs.system}.default;
bbPkg = bazarr-bulk.packages.${pkgs.system}.default;
node-syncsub = pkgs.callPackage ./node-syncsub {
subsync = subsyncPkg;
};
in {
environment.systemPackages = [subsyncPkg node-syncsub];
environment.systemPackages = [
subsyncPkg
node-syncsub
(pkgs.writeShellApplication {
name = "bb";
text = ''
exec ${lib.getExe bbPkg} --config ${config.sops.secrets.bazarr-bulk.path} "$@"
'';
})
(pkgs.writeShellApplication {
name = "bb-fr";
text = ''
exec ${lib.getExe bbPkg} --config ${config.sops.secrets.bazarr-bulk-fr.path} "$@"
'';
})
];
systemd = {
services.subsync-job = {

Binary file not shown.

BIN
flake.nix

Binary file not shown.