NixOS module for the Accentor music server.
If you have your system set up with flakes, you can add Accentor as a service to your system flake:
{# add this flake as an inputinputs.accentor={url="github:accentor/flake";inputs.nixpkgs.follows="nixpkgs";};outputs={self,nixpkgs,accentor}: {# change `yourhostname` to your actual hostnamenixosConfigurations.yourhostname=nixpkgs.lib.nixosSystem{# change to your system:system="x86_64-linux";modules=[# Accentor music serveraccentor.nixosModule({nixpkgs.overlays=[accentor.overlay];})# your configuration./configuration.nix];};};}Next, you can enable this service as if it is a normal NixOS service:
{services.accentor={enable=true;hostname="accentor.example.com";workers=8;environmentFile="/var/lib/accentor/secret.env";};}Artifacts are cached on cachix. See Cachix for setup instructions.