basic syncthing on bolty

This commit is contained in:
Cyryl Płotnicki 2024-01-05 19:58:49 +00:00
parent a78cb848f1
commit a1421e7870
3 changed files with 30 additions and 0 deletions

View file

@ -23,6 +23,7 @@
./tailscale-cert.nix
./videos.nix
./virtualisation.nix
./syncthing.nix
];
boot.binfmt.emulatedSystems = ["aarch64-linux"];
programs.ccache.enable = true;

View file

@ -0,0 +1,25 @@
{
config,
pkgs,
inputs,
system,
...
}: {
services.syncthing = {
enable = true;
dataDir = "/data/syncthing/";
openDefaultPorts = true;
package =
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".syncthing;
overrideDevices = false;
overrideFolders = false;
settings = {
devices = {
"foryog" = {
id = "Q4AA3LA-QIMMBNK-QWKW2AL-5SRGBU3-RYWD5EH-GKMVXRT-XVYFU3R-UYAAMAH";
};
};
};
};
}

View file

@ -16,8 +16,12 @@ in {
package =
inputs.nixpkgs-nixos-unstable.legacyPackages."${system}".syncthing;
overrideDevices = false;
overrideFolders = false;
settings = {
devices = {
"bolty" = {
id = "RWRDHMX-6XVZDIP-7A36KBY-SIOAGHJ-RDQALMZ-VX5KY4J-4CNNNWH-HIAZHQL";
};
"OnePlus9" = {
id = "2UVDAHX-IWQEBLF-6VOYLWO-MYQBMO2-62QPM76-CFYPPZW-CWVIBZF-JEUS4QZ";
};