[tohru] Enable syncthing with kilgharrah

This commit is contained in:
Katherina Walshe-Grey 2024-06-19 21:00:03 +01:00
parent f71a65d051
commit 19886a488c
2 changed files with 25 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./home.nix
../../common/fonts.nix
../../common/steam.nix
./syncthing.nix
];
boot.loader.systemd-boot.enable = true;

24
hosts/tohru/syncthing.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
{
services.syncthing = {
enable = true;
user = "qenya";
dataDir = "/data/syncthing";
openDefaultPorts = true;
overrideDevices = true;
overrideFolders = true;
settings = {
devices = {
"kilgharrah" = { id = "RDT7IGD-76FZ6LY-37PPB2W-DWPQRPR-LZ4AXF7-4GIIHYJ-RVXUUSG-ZXPN3AZ"; };
};
folders = {
"Documents" = {
id = "alp59-7gs9s";
path = "~/Documents";
devices = [ "kilgharrah" ];
};
};
};
};
}