diff --git a/_sources/generated.json b/_sources/generated.json index a236d13..62038bb 100644 --- a/_sources/generated.json +++ b/_sources/generated.json @@ -186,6 +186,26 @@ }, "version": "v3.9.0" }, + "spotifyd": { + "cargoLocks": null, + "date": "2025-09-04", + "extract": null, + "name": "spotifyd", + "passthru": null, + "pinned": false, + "src": { + "deepClone": false, + "fetchSubmodules": false, + "leaveDotGit": false, + "name": null, + "rev": "f1acee9c6160db92dcd4214e96654cbbaed0e38a", + "sha256": "sha256-dcc+sklPJvV34U1A/eTD1kfIey4o5/kPq4yd72ey7LE=", + "sparseCheckout": [], + "type": "git", + "url": "https://github.com/ulic-youthlic/spotifyd.git" + }, + "version": "f1acee9c6160db92dcd4214e96654cbbaed0e38a" + }, "spotx": { "cargoLocks": null, "date": "2025-07-26", diff --git a/_sources/generated.nix b/_sources/generated.nix index b8d55ca..17f36aa 100644 --- a/_sources/generated.nix +++ b/_sources/generated.nix @@ -117,6 +117,20 @@ sha256 = "sha256-matIAwJeC9F0WJJZ8Qq6hJjATrLqoHOpAGRyD0eqoa8="; }; }; + spotifyd = { + pname = "spotifyd"; + version = "f1acee9c6160db92dcd4214e96654cbbaed0e38a"; + src = fetchgit { + url = "https://github.com/ulic-youthlic/spotifyd.git"; + rev = "f1acee9c6160db92dcd4214e96654cbbaed0e38a"; + fetchSubmodules = false; + deepClone = false; + leaveDotGit = false; + sparseCheckout = [ ]; + sha256 = "sha256-dcc+sklPJvV34U1A/eTD1kfIey4o5/kPq4yd72ey7LE="; + }; + date = "2025-09-04"; + }; spotx = { pname = "spotx"; version = "8b9a9924cf2f7268337a9bad5e84b0083268f40d"; diff --git a/home/david/configurations/Tytonidae/default.nix b/home/david/configurations/Tytonidae/default.nix index 15992d0..8dc2982 100644 --- a/home/david/configurations/Tytonidae/default.nix +++ b/home/david/configurations/Tytonidae/default.nix @@ -35,6 +35,7 @@ kvm.enable = true; atuin.enable = true; ion.enable = true; + spotifyd.enable = true; awscli = { enable = true; url = "http://localhost:8491"; diff --git a/home/modules/programs/spotifyd.nix b/home/modules/programs/spotifyd.nix new file mode 100644 index 0000000..9d94848 --- /dev/null +++ b/home/modules/programs/spotifyd.nix @@ -0,0 +1,25 @@ +{ config, lib, ... }: +let + cfg = config.youthlic.programs.spotifyd; +in +{ + options = { + youthlic.programs.spotifyd = { + enable = lib.mkEnableOption "spotifyd"; + }; + }; + config = lib.mkIf cfg.enable { + services.spotifyd = { + enable = true; + settings = { + global = { + device_type = "computer"; + use_mpris = true; + backend = "pulseaudio"; + bitrate = 320; + autoplay = false; + }; + }; + }; + }; +} diff --git a/nvfetcher.toml b/nvfetcher.toml index 4676d28..e1b5252 100644 --- a/nvfetcher.toml +++ b/nvfetcher.toml @@ -62,3 +62,8 @@ url.name = "yustar_$ver.zip" [nvim_vim-startuptime] fetch.github = "dstein64/vim-startuptime" src.git = "https://github.com/dstein64/vim-startuptime.git" + +[spotifyd] +fetch.git = "https://github.com/ulic-youthlic/spotifyd.git" +src.git = "https://github.com/ulic-youthlic/spotifyd.git" +src.branch = "push-mrxqoqwxqsqt" diff --git a/overlays/modifications/default.nix b/overlays/modifications/default.nix index c7bbf61..3e81846 100644 --- a/overlays/modifications/default.nix +++ b/overlays/modifications/default.nix @@ -14,6 +14,7 @@ in ./helix.nix ./cliphist.nix ./zulip.nix + ./spotifyd.nix # Nur ./nur.nix diff --git a/overlays/modifications/spotifyd.nix b/overlays/modifications/spotifyd.nix new file mode 100644 index 0000000..2d19fce --- /dev/null +++ b/overlays/modifications/spotifyd.nix @@ -0,0 +1,8 @@ +{ outputs, ... }: +_final: prev: +let + inherit (prev.stdenv.hostPlatform) system; +in +{ + spotifyd = outputs.packages."${system}".spotifyd; +} diff --git a/pkgs/spotifyd.nix b/pkgs/spotifyd.nix new file mode 100644 index 0000000..211ff3f --- /dev/null +++ b/pkgs/spotifyd.nix @@ -0,0 +1,27 @@ +{ + srcs, + spotifyd, + rustPlatform, + ... +}: +let + inherit (srcs.spotifyd) src date version; +in +spotifyd.overrideAttrs ( + final: prev: { + inherit src; + version = + if prev.version != "0.4.1" then + throw '' + Please remove + '' + else + "0-unstable-${date}-git${version}"; + cargoDeps = rustPlatform.fetchCargoVendor { + inherit (final) + src + ; + hash = "sha256-WwShp1ebk89cBqRXqKDgbwGZraCDjQAOxoL4uEIq2aw="; + }; + } +)