chaos music control inspired by relaxx player
- mpd web gui
- search music
- organize playlists
- control current playback queue
- no authentication required to control music playback
- add playlists from internet radios (
*.m3u
,*.pls
) - add music from other sources like youtube (
youtube-dl
)
Example flake setup (untested):
{
description = "Example Flake to install sanic on your host";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-24.05;
sanic = {
url = gitlab:XenGi/sanic/main;
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, sanic }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
nixosConfigurations."myhostname".nixpkgs.lib.nixosSystem = {
inherit system;
modules = [
{ environment.systemPackages = [ sanic.packages.${system}.default ]; }
];
};
};
}
Install from the AUR:
yay -S sanic
Run as daemon:
podman run -d -v ./config.ini:/config.ini -p 8080:8080 registry.gitlab.com/XenGi/sanic:latest
sanic is developed using Nix, but you can also just use the usual Golang tooling.
Run local MPD instance for testing with make mpd
.
Update go dependencies like this:
go get -u # or `make update`
go mod tidy # or `make tidy`
gomod2nix # sync go deps with nix
Enter development shell (also has mpc client installed for testing):
nix develop
Build sanic:
nix build
Use these Make targets for your convenience:
run
: Run projectbuild
: Compile projecttidy
: Add missing and remove unused modulesverify
: Verify dependencies have expected contentformat
: Format go codelint
: Run linter (staticcheck)test
: Run testscert
: Create https certificate for local testing
You can run sanic in a container. Use these Make targets for convenience:
build-container
: Build container imagerun-container
: Run container image