feat: Use specitify instead of spotx
This commit is contained in:
parent
f812a13895
commit
b275b19421
11 changed files with 107 additions and 56 deletions
67
flake.lock
generated
67
flake.lock
generated
|
|
@ -865,6 +865,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs_10": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1770107345,
|
||||||
|
"narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "4533d9293756b63904b7238acb84ac8fe4c8c2c4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759381078,
|
"lastModified": 1759381078,
|
||||||
|
|
@ -979,16 +995,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_9": {
|
"nixpkgs_9": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770107345,
|
"lastModified": 1770197578,
|
||||||
"narHash": "sha256-tbS0Ebx2PiA1FRW8mt8oejR0qMXmziJmPaU1d4kYY9g=",
|
"narHash": "sha256-AYqlWrX09+HvGs8zM6ebZ1pwUqjkfpnv8mewYwAo+iM=",
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "4533d9293756b63904b7238acb84ac8fe4c8c2c4",
|
"rev": "00c21e4c93d963c50d4c0c89bfa84ed6e0694df2",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "NixOS",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
@ -1142,6 +1158,7 @@
|
||||||
"nvchad-starter": "nvchad-starter",
|
"nvchad-starter": "nvchad-starter",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"spacemacs": "spacemacs",
|
"spacemacs": "spacemacs",
|
||||||
|
"spicetify-nix": "spicetify-nix",
|
||||||
"stylix": "stylix",
|
"stylix": "stylix",
|
||||||
"treefmt-nix": "treefmt-nix",
|
"treefmt-nix": "treefmt-nix",
|
||||||
"zen-browser": "zen-browser"
|
"zen-browser": "zen-browser"
|
||||||
|
|
@ -1225,6 +1242,25 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"spicetify-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": "nixpkgs_9",
|
||||||
|
"systems": "systems_7"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771268051,
|
||||||
|
"narHash": "sha256-nGqPcngnezoT+/xAvw3UDjwdKP2MC4fO315A/Otb9eE=",
|
||||||
|
"owner": "Gerg-L",
|
||||||
|
"repo": "spicetify-nix",
|
||||||
|
"rev": "b930de84c561f62a0c39a6a57c2ab553a97e8495",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "Gerg-L",
|
||||||
|
"repo": "spicetify-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"stylix": {
|
"stylix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"base16": "base16",
|
"base16": "base16",
|
||||||
|
|
@ -1240,7 +1276,7 @@
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nur": "nur_2",
|
"nur": "nur_2",
|
||||||
"systems": "systems_7",
|
"systems": "systems_8",
|
||||||
"tinted-foot": "tinted-foot",
|
"tinted-foot": "tinted-foot",
|
||||||
"tinted-kitty": "tinted-kitty",
|
"tinted-kitty": "tinted-kitty",
|
||||||
"tinted-schemes": "tinted-schemes",
|
"tinted-schemes": "tinted-schemes",
|
||||||
|
|
@ -1366,6 +1402,21 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"systems_8": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"tinted-foot": {
|
"tinted-foot": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
|
@ -1449,7 +1500,7 @@
|
||||||
},
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_9"
|
"nixpkgs": "nixpkgs_10"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1770228511,
|
"lastModified": 1770228511,
|
||||||
|
|
|
||||||
|
|
@ -240,5 +240,11 @@
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
spicetify-nix = {
|
||||||
|
type = "github";
|
||||||
|
owner = "Gerg-L";
|
||||||
|
repo = "spicetify-nix";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
wallpaper.enable = true;
|
wallpaper.enable = true;
|
||||||
accounts.email.enable = true;
|
accounts.email.enable = true;
|
||||||
programs = {
|
programs = {
|
||||||
|
spotify.enable = true;
|
||||||
chromium.enable = true;
|
chromium.enable = true;
|
||||||
thunderbird.enable = true;
|
thunderbird.enable = true;
|
||||||
foot.enable = false;
|
foot.enable = false;
|
||||||
|
|
|
||||||
40
home/david/modules/programs/spotify.nix
Normal file
40
home/david/modules/programs/spotify.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
cfg = config.david.programs.spotify;
|
||||||
|
spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||||
|
in {
|
||||||
|
options = {
|
||||||
|
david.programs.spotify = {
|
||||||
|
enable = lib.mkEnableOption "spotify";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
stylix.targets.spicetify.enable = false;
|
||||||
|
programs.spicetify = {
|
||||||
|
enable = true;
|
||||||
|
wayland = true;
|
||||||
|
windowManagerPatch = true;
|
||||||
|
enabledExtensions = with spicePkgs.extensions; [
|
||||||
|
sort-play
|
||||||
|
allOfArtist
|
||||||
|
sleepTimer
|
||||||
|
coverAmbience
|
||||||
|
beautifulLyrics
|
||||||
|
sectionMarker
|
||||||
|
playingSource
|
||||||
|
adblock
|
||||||
|
history
|
||||||
|
copyToClipboard
|
||||||
|
songStats
|
||||||
|
playNext
|
||||||
|
];
|
||||||
|
theme = spicePkgs.themes.catppuccin;
|
||||||
|
colorScheme = "mocha";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
nix4nvchad.homeManagerModule
|
nix4nvchad.homeManagerModule
|
||||||
noctalia.homeModules.default
|
noctalia.homeModules.default
|
||||||
zen-browser.homeModules.twilight
|
zen-browser.homeModules.twilight
|
||||||
|
spicetify-nix.homeManagerModules.spicetify
|
||||||
])
|
])
|
||||||
++ lib.youthlic.loadImports ./.;
|
++ lib.youthlic.loadImports ./.;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@
|
||||||
kdePackages.neochat
|
kdePackages.neochat
|
||||||
vlc
|
vlc
|
||||||
btop
|
btop
|
||||||
spotify
|
|
||||||
localsend
|
localsend
|
||||||
zulip
|
zulip
|
||||||
wechat
|
wechat
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,6 @@
|
||||||
handbrake
|
handbrake
|
||||||
wechat-uos
|
wechat-uos
|
||||||
nvtopPackages.full
|
nvtopPackages.full
|
||||||
spotify
|
|
||||||
localsend
|
localsend
|
||||||
jq
|
jq
|
||||||
onefetch
|
onefetch
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,3 @@
|
||||||
[spotx]
|
|
||||||
fetch.github = "SpotX-Official/SpotX-Bash"
|
|
||||||
src.git = "https://github.com/SpotX-Official/SpotX-Bash.git"
|
|
||||||
|
|
||||||
[TrackersListCollection]
|
[TrackersListCollection]
|
||||||
fetch.github = "XIU2/TrackersListCollection"
|
fetch.github = "XIU2/TrackersListCollection"
|
||||||
src.git = "https://github.com/XIU2/TrackersListCollection.git"
|
src.git = "https://github.com/XIU2/TrackersListCollection.git"
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ in
|
||||||
pipe
|
pipe
|
||||||
[
|
[
|
||||||
./niri.nix
|
./niri.nix
|
||||||
./spotifyx.nix
|
|
||||||
./radicle-explorer.nix
|
./radicle-explorer.nix
|
||||||
./wshowkeys.nix
|
./wshowkeys.nix
|
||||||
# ./QQ.nix
|
# ./QQ.nix
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{outputs, ...}: _final: prev: let
|
|
||||||
inherit (prev.stdenv.hostPlatform) system;
|
|
||||||
in {
|
|
||||||
spotify = outputs.packages."${system}".spotifyx;
|
|
||||||
}
|
|
||||||
|
|
@ -1,36 +0,0 @@
|
||||||
{
|
|
||||||
spotify,
|
|
||||||
unzip,
|
|
||||||
zip,
|
|
||||||
perl,
|
|
||||||
makeWrapper,
|
|
||||||
srcs,
|
|
||||||
}: let
|
|
||||||
inherit (srcs) spotx;
|
|
||||||
in
|
|
||||||
spotify.overrideAttrs (
|
|
||||||
_final: prev: {
|
|
||||||
nativeBuildInputs =
|
|
||||||
prev.nativeBuildInputs
|
|
||||||
++ [
|
|
||||||
unzip
|
|
||||||
zip
|
|
||||||
perl
|
|
||||||
makeWrapper
|
|
||||||
];
|
|
||||||
spotx = spotx.src;
|
|
||||||
postUnpack = ''
|
|
||||||
cp $spotx/spotx.sh ./spotx.sh
|
|
||||||
chmod +x ./spotx.sh
|
|
||||||
patchShebangs --build ./spotx.sh
|
|
||||||
'';
|
|
||||||
postInstall = ''
|
|
||||||
./spotx.sh -P $out/share/spotify -h -p
|
|
||||||
'';
|
|
||||||
postFixup = ''
|
|
||||||
wrapProgram $out/bin/spotify \
|
|
||||||
--set NIXOS_OZONE_WL 1 \
|
|
||||||
--add-flags '--wayland-text-input-version=3'
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
)
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue