Skip to content

Latest commit

 

History

History
53 lines (43 loc) · 1.14 KB

README.md

File metadata and controls

53 lines (43 loc) · 1.14 KB

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.