add os config for hs

This commit is contained in:
ant 2025-06-10 22:41:18 +02:00
parent ccd3e64936
commit dafda65208
5 changed files with 323 additions and 1 deletions

58
os/hs/syncthing.nix Normal file
View file

@ -0,0 +1,58 @@
{ config, pkgs, ... }: {
services.syncthing = {
enable = true;
openDefaultPorts = true;
# group = "syncthing";
# user = "syncthing";
# dataDir = "/home/syncthing/shares";
# configDir = "/home/syncthing/config";
overrideDevices =
true; # overrides any devices added or deleted through the WebUI
overrideFolders =
true; # overrides any folders added or deleted through the WebUI
settings = {
devices = {
"home" = {
id =
"FRCTEHB-WI3Q3CH-6MPKKRX-FTJMOCK-44K2D32-ORM52ZI-S2GTX2X-IRUSAQ5";
};
"android" = {
id =
"4Z7HDYB-C56BONH-JRBN5D7-LDFNHQJ-5BQDLVU-O3SMBPI-3VZTL7V-ERGU2Q5";
};
"allegro" = {
id =
"CLANFN6-Q26KKQL-S6OZ4JW-75CM2JC-R47DIWM-G7RBX7T-B4TJPTS-5U3ZRQH";
};
};
folders = {
"~/notes" = {
id = "njhxw-6wmte";
devices = [
"home"
"android"
"allegro"
]; # Which devices to share the folder with
};
"~/android_dcim" = {
id = "3ku25-ww5zg";
devices = [
"home"
"android"
"allegro"
]; # Which devices to share the folder with
};
"~/passdb" = {
id = "eo3io-kbitv";
devices = [
"home"
"android"
"allegro"
]; # Which devices to share the folder with
};
};
};
};
}