diff --git a/hosts/workstation/configuration.nix b/hosts/workstation/configuration.nix index 8297a20..ca80bf2 100644 --- a/hosts/workstation/configuration.nix +++ b/hosts/workstation/configuration.nix @@ -51,6 +51,40 @@ "resilio/host" = { }; "resilio/password" = { }; }; + home-manager.users.jawz.xdg.configFile."jellyfin-rpc/main.json".text = builtins.toJSON { + jellyfin = { + url = "https://flix.servidos.lat"; + api_key = "abe7cdf35e5c453a9bceb004f4792b4a"; + username = "jawz"; + music = { + display = [ + "year" + "album" + ]; + separator = "-"; + }; + }; + discord = { + application_id = "1311453366978875392"; + buttons = [ + { + name = "dynamic"; + url = "dynamic"; + } + { + name = "dynamic"; + url = "dynamic"; + } + ]; + }; + imgur = { + client_id = "1ca05dbfc674d39"; + }; + images = { + enable_images = true; + imgur_images = true; + }; + }; networking = { hostName = "workstation"; firewall = @@ -82,7 +116,7 @@ distrobox # install packages from other os gocryptfs # encrypted filesystem! shhh!!! torrenttools # create torrent files from the terminal! - vcsi # video thumbnails for torrents, can I replace it with ^? + # vcsi # video thumbnails for torrents, can I replace it with ^? ; }; nixremote = { diff --git a/modules/servers/discord-rpc.nix b/modules/servers/discord-rpc.nix new file mode 100644 index 0000000..ce7c984 --- /dev/null +++ b/modules/servers/discord-rpc.nix @@ -0,0 +1,11 @@ +{ + config, + lib, + pkgs, + ... +}: +{ + config = + { + }; +} diff --git a/pkgs/discord-rpc/default.nix b/pkgs/discord-rpc/default.nix new file mode 100644 index 0000000..1efb854 --- /dev/null +++ b/pkgs/discord-rpc/default.nix @@ -0,0 +1,33 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + stdenv, + darwin, +}: + +rustPlatform.buildRustPackage rec { + pname = "jellyfin-rpc"; + version = "1.3.0"; + + src = fetchFromGitHub { + owner = "Radiicall"; + repo = "jellyfin-rpc"; + rev = version; + hash = "sha256-sr82lTOr6RUvYD0CVZMyyRAFjai1oLnRWIszuu7/jE0="; + }; + + cargoHash = "sha256-KHbYM7aWgch+DWF46DpFCCt7JoKR0sasuFO3xPOytWA="; + + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = { + description = "Displays the content you're currently watching on Discord"; + homepage = "https://github.com/Radiicall/jellyfin-rpc"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ CaptainJawZ ]; + mainProgram = "jellyfin-rpc"; + }; +} diff --git a/pkgs/discord-rpc/result b/pkgs/discord-rpc/result new file mode 120000 index 0000000..4151930 --- /dev/null +++ b/pkgs/discord-rpc/result @@ -0,0 +1 @@ +/nix/store/js35q8d06zpcir4ryxibhdjyd422ddcr-jellyfin-rpc-1.3.0 \ No newline at end of file