diff --git a/machine/centroid/default.nix b/machine/centroid/default.nix index dba52a2..ab48d15 100644 --- a/machine/centroid/default.nix +++ b/machine/centroid/default.nix @@ -33,9 +33,27 @@ ]; users.users.tvb.extraGroups = [ + "mopidy" "networkmanager" "pipewire" ]; + users.groups.mopidy = {}; # rw group for media directory + users.users.mopidy.extraGroups = [ + "mopidy" + "pipewire" # necessary to allow the system service to play sound + ]; + services.mopidy = { + enable = true; + extensionPackages = with pkgs; [ + mopidy-musicbox-webclient + ]; + configuration = '' + [file] + media_dirs = + /media/music|Music + ''; + }; + system.stateVersion = "23.11"; }