Go to file
Emery Hemingway 89de6a658b preserves-nim: init at 1.0.0
This package contains the "preserves_schema_nim" utility for
generating Nim modules from Preserves schema.

The nixpkgs input of the flake has been moved to bring in the
"buildNimPackage" function, which is not yet in master. See
https://github.com/NixOS/nixpkgs/pull/136489
2021-09-03 18:39:40 +02:00
nixos nixos: trim flags cruft 2021-09-03 12:07:33 +02:00
preserves-nim preserves-nim: init at 1.0.0 2021-09-03 18:39:40 +02:00
preserves-tools preserves-tools: init at 1.0.0 2021-09-03 13:57:18 +02:00
syndicate-rs syndicate-rs: add meta 2021-09-03 13:57:17 +02:00
.gitignore Add lib.generators.toPreserves 2021-09-02 22:12:54 +02:00
README.md I meant trunk 2021-09-03 11:57:06 +02:00
flake.lock preserves-nim: init at 1.0.0 2021-09-03 18:39:40 +02:00
flake.nix preserves-nim: init at 1.0.0 2021-09-03 18:39:40 +02:00
lib.nix Add record support to lib.generators.toPreserves 2021-09-03 09:59:30 +02:00

README.md

Syndicate Nix flake

To add to your local flake registry:

nix registry add syndicate "git+https://git.sr.ht/~ehmry/syndicate-flake?ref=trunk"

NixOS service

Importing

To import the NixOS module:

{
  # /etc/nixos/flake.nix
  inputs.syndicate.url = "git+https://git.sr.ht/~ehmry/syndicate-flake";

  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;
    }];
  };

}