From 9b074ef1c3ed344eae65e7d83bbd511d36311877 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 6 Nov 2024 01:43:39 -0800 Subject: [PATCH] feat: enable spotify-player --- hosts/callisto/default.nix | 2 +- modules/linux/spotifyd/default.nix | 11 +++++++---- users/youwen/linux/home.nix | 2 ++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hosts/callisto/default.nix b/hosts/callisto/default.nix index 8fdeebb..0fcf198 100644 --- a/hosts/callisto/default.nix +++ b/hosts/callisto/default.nix @@ -5,13 +5,13 @@ }: { imports = - with inputs; [ ./configuration.nix ../../modules/linux/audio ../../modules/linux/networking ../../modules/linux/fonts ../../modules/linux/greeter + # ../../modules/linux/spotifyd ../../modules/linux/core ../../modules/linux/desktop-portal ../../modules/linux/stylix diff --git a/modules/linux/spotifyd/default.nix b/modules/linux/spotifyd/default.nix index 120b3c5..d7657e1 100644 --- a/modules/linux/spotifyd/default.nix +++ b/modules/linux/spotifyd/default.nix @@ -2,9 +2,12 @@ { services.spotifyd = { enable = true; - # settings = {global = 320;}; + settings = { + global = { + bitrate = 320; + use_mpris = true; + device_type = "computer"; + }; + }; }; - environment.systemPackages = [ - pkgs.spotify-player - ]; } diff --git a/users/youwen/linux/home.nix b/users/youwen/linux/home.nix index d4bef35..ba6eebb 100755 --- a/users/youwen/linux/home.nix +++ b/users/youwen/linux/home.nix @@ -51,6 +51,8 @@ services.easyeffects.enable = true; services.easyeffects.package = pkgs.easyeffects; + programs.spotify-player.enable = true; + # Notification daemon # services.dunst = { # enable = true;