better syncthing setup

This commit is contained in:
Henri Dohmen 2026-01-13 20:55:39 +01:00
parent 9f9a4d0377
commit 2c7f498d42
Signed by: hd
GPG key ID: AB79213B044674AE
8 changed files with 56 additions and 35 deletions

View file

@ -21,7 +21,6 @@
inputs.lanzaboote.nixosModules.lanzaboote
./disko.nix
./hardware-configuration.nix
./syncthing.nix
];
# https://github.com/NixOS/nixos-hardware/issues/1603

View file

@ -1,8 +0,0 @@
{ ... }:
{
services.syncthing = {
enable = true;
user = "hd";
configDir = "/home/hd/.config/syncthing";
};
}

View file

@ -6,6 +6,11 @@ in
services.syncthing = {
enable = true;
inherit guiAddress;
settings.folders.sync = {
path = "/data/sync/documents-hd";
type = "receiveencrypted";
};
};
services.nginx = {

View file

@ -7,6 +7,12 @@
};
hd.desktop.enable = true;
services.syncthing = {
enable = true;
user = "hd";
configDir = "/home/hd/.config/syncthing";
};
age.identityPaths = [
"/root/.ssh/id_ed25519"
];