Skip to content

syncthing: make config completely declarative #209

Description

@0xlua

Right now syncthing is enabled on callisto and europa. I want both hosts to connect to each other automatically. The short term fix is to use services.syncthing.overrideDevices = false;, but I'm looking for a more permanent solution, using services.syncthing.settings.devices.<name>.id for each host.

For this to work I need to actually know the id for each device, so I need to move the public/private key pair to sops.
I can then set them for each host with services.syncthing.cert and services.syncthing.key.
I'll either to this in hosts/<host>/home.nix for each one, or use some clever naming like secrets/syncthing/${networking.hostName}.key.pem.

Then I need to fill services.syncthing.settings.devices = {}.

One Problem is my phone, since it's (sadly) not configured with nix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions