diff --git a/flake.nix b/flake.nix index 097e90f..c429ea8 100644 --- a/flake.nix +++ b/flake.nix @@ -30,7 +30,9 @@ getSystemOverlays = system: nixpkgsConfig: [ (final: prev: { unstable = nixpkgs-unstable.legacyPackages.${prev.system}; + "storj" = final.callPackage ./pkgs/storj.nix { }; + "isponsorblocktv" = final.callPackage ./pkgs/isponsorblocktv.nix { }; }) ]; in diff --git a/hosts/sodium.pop.ts.hillion.co.uk/default.nix b/hosts/sodium.pop.ts.hillion.co.uk/default.nix index 145f84c..e24de8d 100644 --- a/hosts/sodium.pop.ts.hillion.co.uk/default.nix +++ b/hosts/sodium.pop.ts.hillion.co.uk/default.nix @@ -49,6 +49,9 @@ ## Custom Services custom.locations.autoServe = true; + # TODO: remove me + environment.systemPackages = with pkgs; [ isponsorblocktv ]; + # Networking networking = { useDHCP = false; diff --git a/pkgs/isponsorblocktv.nix b/pkgs/isponsorblocktv.nix new file mode 100644 index 0000000..52410e0 --- /dev/null +++ b/pkgs/isponsorblocktv.nix @@ -0,0 +1,26 @@ +{ lib, python3Packages, fetchGitHub, ... }: + +python3Packages.buildPythonPackage rec { + pname = "isponsorblocktv"; + version = "2.1.0"; + + src = fetchGitHub { + owner = "dmunozv04"; + repo = "iSponsorBlockTV"; + rev = "v${version}"; + hash = ""; + }; + + meta = with lib; { + description = "Skip sponsor segments in YouTube videos playing on a YouTube TV device."; + homepage = "https://github.com/dmunozv04/iSponsorBlockTV"; + license = licenses.gpl3Only; + maintainers = [{ + email = "jake@hillion.co.uk"; + matrix = "@jake:hillion.co.uk"; + name = "Jake Hillion"; + github = "JakeHillion"; + githubId = 5712856; + }]; + }; +}