Changed spotifyd user to mixer, disabled mpris
This commit is contained in:
parent
78077638fc
commit
74f62b34cf
|
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue