Skip to content

accentor/flake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accentor NixOS flake

NixOS module for the Accentor music server.

Usage

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 input
  inputs.accentor = {
    url = "github:accentor/flake";
    inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { self, nixpkgs, accentor }: {
    # change `yourhostname` to your actual hostname
    nixosConfigurations.yourhostname = nixpkgs.lib.nixosSystem {
      # change to your system:
      system = "x86_64-linux";
      modules = [
        # Accentor music server
        accentor.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";
  };
}

Cached artifacts

Artifacts are cached on cachix. See Cachix for setup instructions.