Nix flake containing Preserves and Syndicate packages.
Go to file
Emery Hemingway ef8123e1a0 Refactor flake, update inputs 2022-03-14 15:09:00 -05:00
nixos syndicate-rs-0.15.1 -> syndicate-server-0.24.0 2022-03-01 17:36:55 -06:00
preserves-nim preserves-nim: 2.0.0 -> 3.0.0 2021-11-12 14:22:16 +01:00
preserves-tools preserves-tools: 1.0.0 -> 2.3.0 2021-12-05 12:05:22 +00:00
syndicate-server syndicate-rs-0.15.1 -> syndicate-server-0.24.0 2022-03-01 17:36:55 -06:00
.gitignore Add lib.generators.toPreserves 2021-09-02 22:12:54 +02:00
README.md Use a "master" branch for the sake of Nix tools 2022-03-01 17:37:59 -06:00
flake.lock Refactor flake, update inputs 2022-03-14 15:09:00 -05:00
flake.nix Refactor flake, update inputs 2022-03-14 15:09:00 -05:00
lib.nix lib.generators.toPreserves: quote keys of attrsets 2022-02-26 16:59:01 -06:00

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"

NixOS service

Importing

To import the NixOS module:

{
  # /etc/nixos/flake.nix
  inputs.syndicate.url = "git+https://git.syndicate-lang.org/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;
    }];
  };

}