user/spicetify: init
This commit is contained in:
parent
7b113e161b
commit
da99b2b263
6 changed files with 56 additions and 2 deletions
21
flake.lock
generated
21
flake.lock
generated
|
|
@ -419,6 +419,7 @@
|
|||
"packwiz": "packwiz",
|
||||
"pure": "pure",
|
||||
"rust-overlay": "rust-overlay",
|
||||
"spicetify-nix": "spicetify-nix",
|
||||
"spotify-adblock": "spotify-adblock",
|
||||
"tree-sitter-glimmer": "tree-sitter-glimmer",
|
||||
"tree-sitter-jsonc": "tree-sitter-jsonc",
|
||||
|
|
@ -449,6 +450,26 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"spicetify-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1672725918,
|
||||
"narHash": "sha256-hRFozbeEJOatUGjsOyiBsXzh9bio7LfszqRdmE1GO48=",
|
||||
"owner": "the-argus",
|
||||
"repo": "spicetify-nix",
|
||||
"rev": "f97658eb60cb29a1a35eb6af2ec85d590f1b4a49",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "the-argus",
|
||||
"repo": "spicetify-nix",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"spotify-adblock": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
|
|
|||
|
|
@ -8,12 +8,14 @@
|
|||
nixos-hardware.url = "github:NixOS/nixos-hardware";
|
||||
agenix.url = "github:ryantm/agenix";
|
||||
nixos-generators.url = "github:nix-community/nixos-generators";
|
||||
spicetify-nix.url = "github:the-argus/spicetify-nix";
|
||||
|
||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
home-manager-raccoon.inputs.nixpkgs.follows = "nixpkgs-raccoon";
|
||||
neovim-nightly.inputs.nixpkgs.follows = "nixpkgs";
|
||||
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
||||
spicetify-nix.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
nix-gaming.url = "github:fufexan/nix-gaming";
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ in {
|
|||
./user/polybar.nix
|
||||
./user/rofi.nix
|
||||
./user/sessionVariables.nix
|
||||
./user/spicetify.nix
|
||||
./user/sxhkd.nix
|
||||
./user/theming.nix
|
||||
./user/xdg.nix
|
||||
|
|
|
|||
30
modules/user/spicetify.nix
Normal file
30
modules/user/spicetify.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{ config, inputs, pkgs, ... }:
|
||||
let
|
||||
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
|
||||
#adblock = inputs.spotify-adblock.defaultPackage.x86_64-linux;
|
||||
adblock = pkgs.me.spotify-adblock;
|
||||
in
|
||||
{
|
||||
imports = [ inputs.spicetify-nix.homeManagerModule ];
|
||||
|
||||
programs.spicetify = {
|
||||
spotifyPackage = pkgs.spotify-unwrapped.overrideAttrs(o: {
|
||||
installPhase = let
|
||||
a = pkgs.lib.replaceStrings ["--prefix PATH"] [''--prefix SPOTIFY_ADBLOCK_CONFIG : ${adblock}/lib/config.toml \
|
||||
--prefix LD_PRELOAD : ${adblock}/lib/libspotifyadblock.so \
|
||||
--prefix PATH''] o.installPhase;
|
||||
in builtins.trace a a;
|
||||
});
|
||||
|
||||
enable = true;
|
||||
theme = spicePkgs.themes.Dribbblish;
|
||||
colorScheme = "purple";
|
||||
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
fullAppDisplay
|
||||
shuffle # shuffle+ (special characters are sanitized out of ext names)
|
||||
hidePodcasts
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -7,8 +7,7 @@ rustPlatform.buildRustPackage {
|
|||
version = "1.0";
|
||||
src = inputs.spotify-adblock;
|
||||
|
||||
cargoSha256 = "1dabmqjvbxdgs8im7asilv4nnx6xzcbwbiy924sci1zbd5isxgfx";
|
||||
cargoPatches = [ ./0001-cargo.patch ];
|
||||
cargoSha256 = "sha256-07vswkW0BZCEg8Z/cS71bbkJ546k+YI38HN5bdIqTPU=";
|
||||
|
||||
patches = [ ./0002-allow-setting-config-from-environment-variable.patch ];
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
kitty
|
||||
mpv
|
||||
rofi
|
||||
spicetify
|
||||
|
||||
dunst
|
||||
eww
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue