syncthing

This commit is contained in:
Casper V. Kristensen 2023-08-12 03:20:56 +02:00
parent 9b23b9a610
commit 417cb3c5d3
2 changed files with 28 additions and 0 deletions

View file

@ -4,6 +4,7 @@
./network.nix
./ssh.nix
./sway.nix
./syncthing.nix
];
environment.systemPackages = with pkgs; [

View file

@ -0,0 +1,27 @@
{ config, ... }: {
# https://nixos.wiki/wiki/Syncthing
services.syncthing = {
enable = true;
user = "caspervk";
dataDir = "/home/caspervk";
devices = {
"lambda" = {
id = "WES3JH4-S34HTC5-42YZHUJ-MX3Z6PA-PFO72KA-YIJMDOB-GQWZXZ3-I7BBTAS";
addresses = [ "tcp://lambda.caspervk.net" ];
};
"S10e" = { id = "DWC6YHB-FRYKFHD-FPOUITV-7GL2WZH-RSFOJXR-PHYXDO7-74NLBUZ-TZENVAC"; };
"zeta" = { id = "GQRNHAQ-MMRQYMD-P4RCA6I-5DJ3HXO-J2N2GVP-UGI55YR-HD3EYSO-ERU5QQV"; };
};
folders = {
"keepass" = {
path = "~/keepass";
devices = [ "lambda" "S10e" "zeta" ];
};
"sync" = {
path = "~/sync";
devices = [ "lambda" "zeta" ];
};
};
};
}