1
1
Fork 0

centroid: Set up mopidy

This commit is contained in:
Tim Van Baak 2024-01-20 03:45:55 +00:00
parent 75a6b01fc6
commit 612fcb7dce
1 changed files with 18 additions and 0 deletions

View File

@ -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";
}