[spotify] Fix adblock config file not found
This commit is contained in:
parent
992df68711
commit
c8d78da5d9
2 changed files with 13 additions and 23 deletions
|
@ -2,11 +2,15 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager.users.tdpeuter = {
|
home-manager.users.tdpeuter = {
|
||||||
home.packages = with pkgs; [
|
home = {
|
||||||
|
packages = with pkgs; [
|
||||||
spotify
|
spotify
|
||||||
spotify-adblock
|
spotify-adblock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
file.".config/spotify-adblock/config.toml".source = "${pkgs.spotify-adblock}/config.toml";
|
||||||
|
};
|
||||||
|
|
||||||
# Set the desktop entry to use adblock.
|
# Set the desktop entry to use adblock.
|
||||||
# TODO Is it possible to inherit all other values?
|
# TODO Is it possible to inherit all other values?
|
||||||
xdg.desktopEntries.spotify = {
|
xdg.desktopEntries.spotify = {
|
||||||
|
|
|
@ -15,24 +15,10 @@ final: prev: {
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
];
|
];
|
||||||
};
|
|
||||||
# spotify-wrapper = final.writeScriptBin "spotify-with-adblock" ''
|
|
||||||
# #!/bin/sh
|
|
||||||
# LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify
|
|
||||||
# '';
|
|
||||||
# spotify = prev.spotify.overrideAttrs (something: rec {
|
|
||||||
# installPhase = ''
|
|
||||||
# echo no
|
|
||||||
# '';
|
|
||||||
|
|
||||||
# desktopItem = something.desktopItem.override (desktop: {
|
postPatch = ''
|
||||||
# exec = "LD_PRELOAD=/usr/local/lib/spotify-adblock.so ${desktop.exec}";
|
mkdir -p $out
|
||||||
# });
|
cp $src/config.toml $out/config.toml
|
||||||
#
|
'';
|
||||||
# installPhase = builtins.replaceString [
|
};
|
||||||
# "${something.desktopItem}"
|
|
||||||
# ] [
|
|
||||||
# "${desktopItem}"
|
|
||||||
# ] something.installPhase;
|
|
||||||
# });
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue