syncthing
This commit is contained in:
parent
9b23b9a610
commit
417cb3c5d3
|
@ -4,6 +4,7 @@
|
|||
./network.nix
|
||||
./ssh.nix
|
||||
./sway.nix
|
||||
./syncthing.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
27
modules/desktop/syncthing.nix
Normal file
27
modules/desktop/syncthing.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue