Add syncthing

This commit is contained in:
Jacob Hinkle 2022-10-13 09:04:30 -04:00
parent 3b2c0d88ff
commit a1ee523642
3 changed files with 16 additions and 0 deletions

View File

@ -147,6 +147,8 @@
#media-session.enable = true; #media-session.enable = true;
}; };
syncthing = import ./syncthing.nix;
unifi = { unifi = {
enable = true; enable = true;
openFirewall = true; openFirewall = true;

View File

@ -81,6 +81,11 @@
fsType = "zfs"; fsType = "zfs";
neededForBoot = true; neededForBoot = true;
}; };
fileSystems."/serverdata/syncthing" =
{ device = "rpool/serverdata/syncthing";
fsType = "zfs";
neededForBoot = true;
};
fileSystems."/home" = fileSystems."/home" =
{ device = "rpool/userdata/home"; { device = "rpool/userdata/home";

View File

@ -0,0 +1,9 @@
{
enable = true;
dataDir = "/serverdata/syncthing/";
user = "jacob";
group = "users";
#openDefaultPorts = true;
configDir = "/serverdata/syncthing/.config/syncthing";
guiAddress = "192.168.88.0:8234"; # for headless
}