This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-09-30 00:04:09 +02:00
parent 6a4f270959
commit 9d28a08cd4
3 changed files with 52 additions and 25 deletions

View File

@@ -3,7 +3,6 @@
chromium chromium
element-desktop element-desktop
qbittorrent qbittorrent
unstable.spotify
wl-clipboard wl-clipboard
xfce.thunar xfce.thunar
] ++ (if (hyper.host != "NxACE") then [ ] ++ (if (hyper.host != "NxACE") then [

View File

@@ -1,29 +1,56 @@
{ pkgs, ... }@all: with all; { pkgs, ... }@all: with all;
{ {
home = { home.packages = with pkgs; [
programs.spotify-player = { unstable.spotify
enable = true; ];
settings = { services.librespot = {
theme = "default"; enable = true;
# border_type = "Rounded"; package = pkgs.unstable.librespot;
progress_bar_type = "Line"; };
playback_window_position = "Bottom"; sops.secrets."spotify/spotiy-player-clinet-id" = { path = "%r/secrets/spotify/spotiy-player-clinet-id"; };
play_icon = ""; programs.spotify-player = {
pause_icon = ""; enable = true;
liked_icon = ""; package = pkgs.unstable.spotify-player;
copy_command = { settings = {
command = "wl-copy"; border_type = "Rounded";
args = [ ]; client_id_command = "cat $XDG_RUNTIME_DIR/secrets/spotify/spotiy-player-clinet-id";
}; copy_command.command = "wl-copy";
# client_id = "65b708073fc0480ea92a077233ca87bd"; cover_img_length = 20;
client_port = 8888; cover_img_scale = 1; # if this is not 1 it doesnt fit in the box (for me)
ap_port = 443; cover_img_width = 9; # this ratio depends on your terminal font
device = { device.normalization = true;
audio_cache = true; genre_num = 32; # all of them
normalization = true; liked_icon = "";
volume = 50; name = "spotify-player-${hyper.host}";
}; pause_icon = "";
}; playback_window_position = "Bottom";
play_icon = "";
progress_bar_position = "Right"; # "Bottom"
progress_bar_type = "Rectangle"; # "Line"
theme = "${hyper.user}";
}; };
themes = [{
name = "${hyper.user}";
component_style = with rice.color; {
block_title = { fg = accent.bright; };
border = { fg = border; };
current_playing = { fg = special.base; bg = special.darker; modifiers = ["Italic"]; };
like = { fg = positive.base; };
lyrics_played = { fg = subtle.base; };
lyrics_playing = { fg = special.base; };
page_desc = { fg = secondary.base; };
playback_album = { fg = secondary.base; };
playback_artists = { fg = secondary.base; };
playback_genres = { fg = subtle.base; };
playback_metadata = { fg = accent.base; bg = background; };
playback_progress_bar = { fg = accent.brighter; bg = accent.dark; modifiers = ["Bold"]; };
playback_status = { fg = accent.bright; };
playback_track = { fg = accent.bright; modifiers = ["Bold"]; };
secondary_row = { fg = secondary.base; };
selection = { bg = accent.dark; };
table_header = { fg = tertiary.bright; };
# playback_progress_bar_unfilled (Specific to progress_bar_type as Line) = "";
};
}];
}; };
} }

View File

@@ -55,6 +55,7 @@
./home-modules/scanning.nix ./home-modules/scanning.nix
./home-modules/sent.nix ./home-modules/sent.nix
./home-modules/sops.nix ./home-modules/sops.nix
./home-modules/spotify.nix
./home-modules/ssh.nix ./home-modules/ssh.nix
./home-modules/starship.nix ./home-modules/starship.nix
./home-modules/tts.nix ./home-modules/tts.nix