You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Emery Hemingway 0ef8427cf5 Correct URLs in README 9 months ago
nixos nixos: trim flags cruft 11 months ago
preserves-nim preserves-nim: 1.1.0 -> 2.0.0 10 months ago
preserves-tools preserves-tools: init at 1.0.0 11 months ago
syndicate-rs syndicate-rs: add meta 11 months ago
.gitignore Add lib.generators.toPreserves 11 months ago
README.md Correct URLs in README 9 months ago
flake.lock Update preserves-nim 11 months ago
flake.nix Move nixpkgs input to master branch 11 months ago
lib.nix Add record support to lib.generators.toPreserves 11 months ago

README.md

Syndicate Nix flake

To add to your local flake registry:

nix registry add syndicate "git+https://git.syndicate-lang.org/ehmry/syndicate-flake?ref=trunk"

NixOS service

Importing

To import the NixOS module:

{
  # /etc/nixos/flake.nix
  inputs.syndicate.url = "git+https://git.syndicate-lang.org/ehmry/syndicate-flake?ref=trunk";

  outputs = { self, nixpkgs, syndicate }: {

    nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        ./configuration.nix
        syndicate.nixosModules.syndicate-server
      ];
    };

  };

}

If /etc/nixos is not a flake then you may be able to use the getFlake builtin to retrieve the module.

{ config, lib, pkgs, ... }:

{
  imports = [ (builtins.getFlake "syndicate").nixosModules.syndicate-server ];
}

Configuration

{ config, lib, pkgs, ... }:

{
  services.syndicate-server = {
    enable = true;
    # A socket at /run/syndicate/ds is enable by default.
    tcpListeners = [{
      address = "127.0.0.1";
      port = 3232;
    }];
  };

}