feat(spotify): add spicetify-nix
Currenly not used (no support for `nix-darw`)
This commit is contained in:
parent
19ac5f4f5b
commit
ca1e0b0c1b
2 changed files with 80 additions and 0 deletions
|
@ -73,6 +73,10 @@
|
|||
url = "github:nix-community/NUR";
|
||||
};
|
||||
|
||||
spicetify-nix = {
|
||||
url = "github:the-argus/spicetify-nix";
|
||||
};
|
||||
|
||||
hardware = {
|
||||
url = "github:nixos/nixos-hardware";
|
||||
};
|
||||
|
@ -115,6 +119,7 @@
|
|||
, agenix
|
||||
, ragenix
|
||||
, nur
|
||||
, spicetify-nix
|
||||
, hardware
|
||||
, nix-colors
|
||||
, neovim-nightly-overlay
|
||||
|
|
75
modules/home-manager/reo101-spotify/default.nix
Normal file
75
modules/home-manager/reo101-spotify/default.nix
Normal file
|
@ -0,0 +1,75 @@
|
|||
{ inputs, outputs, ... }:
|
||||
{ lib, pkgs, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.reo101.spotify;
|
||||
|
||||
inherit (lib)
|
||||
mkEnableOption mkOption types
|
||||
mkIf optionals optionalString
|
||||
mkMerge;
|
||||
in
|
||||
{
|
||||
imports =
|
||||
[
|
||||
inputs.spicetify-nix.homeManagerModules.default
|
||||
];
|
||||
|
||||
options =
|
||||
{
|
||||
reo101.spotify = {
|
||||
enable = mkEnableOption "reo101 spotify setup";
|
||||
};
|
||||
};
|
||||
|
||||
config =
|
||||
mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
spotify
|
||||
];
|
||||
|
||||
programs.spicetify =
|
||||
let
|
||||
spicePkgs = inputs.spicetify-nix.packages.${pkgs.system}.default;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
spotifyPackage = pkgs.spotify;
|
||||
|
||||
colorScheme = "text";
|
||||
|
||||
enabledExtensions = with spicePkgs.extensions; [
|
||||
adblock
|
||||
autoVolume
|
||||
copyToClipboard
|
||||
fullAlbumDate
|
||||
fullAppDisplay
|
||||
genre
|
||||
goToSong
|
||||
groupSession
|
||||
hidePodcasts
|
||||
history
|
||||
keyboardShortcut
|
||||
lastfm
|
||||
listPlaylistsWithSong
|
||||
loopyLoop
|
||||
phraseToPlaylist
|
||||
playNext
|
||||
playlistIcons
|
||||
playlistIntersection
|
||||
popupLyrics
|
||||
savePlaylists
|
||||
showQueueDuration
|
||||
shuffle # shuffle+
|
||||
skipStats
|
||||
songStats
|
||||
trashbin
|
||||
volumePercentage
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
maintainers = with lib.maintainers; [ reo101 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue