~ehmry/syndicate-flake

Nix flake of Syndicate tools
Move nixpkgs input to master branch
preserves-nim: init at 1.0.0
preserves-tools: init at 1.0.0

refs

trunk
browse  log 

clone

read-only
https://git.sr.ht/~ehmry/syndicate-flake
read/write
git@git.sr.ht:~ehmry/syndicate-flake

You can also use your local clone with git send-email.

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

}