From 74f62b34cff7220c701adb397142412ea6480df8 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Thu, 17 Apr 2025 18:32:25 +0200 Subject: [PATCH] Changed spotifyd user to mixer, disabled mpris --- modules/spotifyd/default.nix | 15 +++++++-------- modules/spotifyd/spotifyd.conf | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/modules/spotifyd/default.nix b/modules/spotifyd/default.nix index c0ee4dc..34e170c 100644 --- a/modules/spotifyd/default.nix +++ b/modules/spotifyd/default.nix @@ -16,11 +16,10 @@ in config = mkIf cfg.enable { # User for spotifyd - users.users.spotifyd = { - isSystemUser = true; - group = "spotifyd"; + users.users.mixer = { + group = "mixer"; }; - users.groups.spotifyd = { }; + users.groups.mixer = { }; # Spotifyd service systemd.services.spotifyd = { @@ -34,8 +33,8 @@ in ExecStart = "${pkgs.spotifyd}/bin/spotifyd --no-daemon --config-path /etc/spotifyd/spotifyd.conf"; Restart = "always"; RestartSec = 5; - User = "spotifyd"; - Group = "spotifyd"; + User = "mixer"; + Group = "mixer"; }; }; @@ -44,8 +43,8 @@ in "spotifyd/spotifyd.conf" = { source = ./spotifyd.conf; mode = "0444"; - user = "spotifyd"; - group = "spotifyd"; + user = "mixer"; # TODO: Make user configurable + group = "mixer"; }; }; diff --git a/modules/spotifyd/spotifyd.conf b/modules/spotifyd/spotifyd.conf index a14a8e5..735bfff 100644 --- a/modules/spotifyd/spotifyd.conf +++ b/modules/spotifyd/spotifyd.conf @@ -32,7 +32,7 @@ device_type = "a_v_r" # and expose MPRIS controls. When running headless, without the session bus, # you should set this to false, to avoid errors. If you still want to use MPRIS, # have a look at the `dbus_type` option. -#use_mpris = true +use_mpris = false # The bus to bind to with the MPRIS interface. # Possible values: "session", "system"