Test spotify-adblock
This commit is contained in:
parent
6c60d85ea6
commit
fff30c3314
4 changed files with 60 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./alacritty
|
||||
./firefox
|
||||
./spotify
|
||||
./steam
|
||||
./thunderbird
|
||||
# ./virtualbox
|
||||
|
@ -19,7 +20,6 @@
|
|||
obsidian
|
||||
pinentry_qt
|
||||
qalculate-gtk
|
||||
spotify
|
||||
zathura
|
||||
zoom-us
|
||||
];
|
||||
|
|
17
nixos/modules/apps/spotify/default.nix
Normal file
17
nixos/modules/apps/spotify/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home-manager.users.tdpeuter = {
|
||||
home.packages = with pkgs; [
|
||||
spotify
|
||||
spotify-adblock
|
||||
];
|
||||
|
||||
# Set the desktop entry to use adblock.
|
||||
# TODO Is it possible to inherit all other values?
|
||||
xdg.desktopEntries.spotify = {
|
||||
name = "Spotify";
|
||||
exec = "LD_PRELOAD=${pkgs.spotify-adblock}/lib/libspotifyadblock.so spotify %U";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue