syncthing on eple
This commit is contained in:
parent
2aceb5d8ca
commit
a16700a873
@ -18,6 +18,7 @@
|
|||||||
../../../users/pbsds
|
../../../users/pbsds
|
||||||
../../../users/bartvbl
|
../../../users/bartvbl
|
||||||
|
|
||||||
|
../../../users/pbsds/syncthing.nix
|
||||||
../../../profiles/mounts/panorama-zfs.nix
|
../../../profiles/mounts/panorama-zfs.nix
|
||||||
|
|
||||||
../../../profiles/shell.nix
|
../../../profiles/shell.nix
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
systemd.services.zfs-mount.enable = true;
|
systemd.services.zfs-mount.enable = true;
|
||||||
boot.zfs.extraPools = [ "Panorama" ]; # import on boot
|
boot.zfs.extraPools = [ "Panorama" ]; # import on boot
|
||||||
|
|
||||||
|
services.syncthing.dataDir = "/mnt/panorama/Syncthing/pbsds";
|
||||||
|
|
||||||
# todo: tailscale nfs mount
|
# todo: tailscale nfs mount
|
||||||
|
|
||||||
# TODO: zrepl pull
|
# TODO: zrepl pull
|
||||||
|
@ -14,10 +14,11 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = !config.virtualisation.isVmVariant;
|
||||||
|
|
||||||
user = lib.mkDefault "pbsds";
|
user = lib.mkDefault "pbsds";
|
||||||
group = lib.mkDefault "pbsds";
|
group = lib.mkDefault "pbsds";
|
||||||
|
# overridden in for example panorama-zfs.nix
|
||||||
dataDir = lib.mkDefault (config.users.users.pbsds.home + "/syncthing");
|
dataDir = lib.mkDefault (config.users.users.pbsds.home + "/syncthing");
|
||||||
|
|
||||||
overrideDevices = true; # overrides devices from WebUI
|
overrideDevices = true; # overrides devices from WebUI
|
||||||
@ -25,6 +26,7 @@
|
|||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
options.urAccepted = -1; # disable telemetry
|
options.urAccepted = -1; # disable telemetry
|
||||||
|
#guiAddress = "127.0.0.1:8384";
|
||||||
|
|
||||||
# TODO: nox
|
# TODO: nox
|
||||||
# TODO: eple
|
# TODO: eple
|
||||||
@ -41,6 +43,7 @@
|
|||||||
devices."rocm".id = "UFW6V4E-LMEDTYR-23BU6BP-2HEMWYB-2ARCJ4X-T67WHZX-BNCCHZ4-5GPSZQV";
|
devices."rocm".id = "UFW6V4E-LMEDTYR-23BU6BP-2HEMWYB-2ARCJ4X-T67WHZX-BNCCHZ4-5GPSZQV";
|
||||||
devices."sopp".id = "ZQJEWAX-GALDJDO-FBOE5ON-M5XKXNT-PRZD3CY-S7L3XDR-PR27NYL-RZ6O7QW";
|
devices."sopp".id = "ZQJEWAX-GALDJDO-FBOE5ON-M5XKXNT-PRZD3CY-S7L3XDR-PR27NYL-RZ6O7QW";
|
||||||
devices."nord".id = "C6N5NVA-AXCQ23G-4D4U3A6-WLNXCRC-PBE3PLB-P4SATUU-PSB2MN2-WOZPHAL";
|
devices."nord".id = "C6N5NVA-AXCQ23G-4D4U3A6-WLNXCRC-PBE3PLB-P4SATUU-PSB2MN2-WOZPHAL";
|
||||||
|
devices."eple".id = "FJSR2G5-PEXVNU5-OTTKGLG-Z4P3TFO-ELTCV5Z-EMP3HEH-VPREJUH-U2EMAAE";
|
||||||
/* devices."bjarte".autoAcceptFolders = true; # TODO */
|
/* devices."bjarte".autoAcceptFolders = true; # TODO */
|
||||||
|
|
||||||
folders = lib.flip lib.pipe [
|
folders = lib.flip lib.pipe [
|
||||||
@ -51,15 +54,15 @@
|
|||||||
lib.mkMerge
|
lib.mkMerge
|
||||||
] {
|
] {
|
||||||
/* "ntnu".ignorePerms = false; # `false` means sync file permissions */
|
/* "ntnu".ignorePerms = false; # `false` means sync file permissions */
|
||||||
"DCIM".devices = [ "pjudduzen" "bjarte" "sopp" ];
|
"DCIM".devices = [ "eple" "pjudduzen" "bjarte" "sopp" ];
|
||||||
"ntnu".devices = [ "bjarte" "sopp" "rocm" ];
|
"ntnu".devices = [ "eple" "bjarte" "sopp" "rocm" ];
|
||||||
"mihon".devices = [ "pjudduzen" "bjarte" "nord" ];
|
"mihon".devices = [ "eple" "pjudduzen" "bjarte" "nord" ];
|
||||||
"ewesticker".devices = [ "pjudduzen" "bjarte" "sopp" "rocm" "nord" ];
|
"ewesticker".devices = [ "eple" "pjudduzen" "bjarte" "sopp" "rocm" "nord" ];
|
||||||
"pjudduzen-clover".devices = [ "pjudduzen" "sopp" ];
|
"pjudduzen-clover".devices = [ "eple" "pjudduzen" "sopp" ];
|
||||||
"pjudduzen-movies".devices = [ "pjudduzen" "sopp" ];
|
"pjudduzen-movies".devices = [ "eple" "pjudduzen" "sopp" ];
|
||||||
"pjudduzen-music".devices = [ "pjudduzen" "sopp" ];
|
"pjudduzen-music".devices = [ "eple" "pjudduzen" "sopp" ];
|
||||||
"pjudduzen-pictures".devices = [ "pjudduzen" "sopp" "bjarte" ];
|
"pjudduzen-pictures".devices = [ "eple" "pjudduzen" "sopp" "bjarte" ];
|
||||||
"pjudduzen-snapchat".devices = [ "pjudduzen" "sopp" ];
|
"pjudduzen-snapchat".devices = [ "eple" "pjudduzen" "sopp" ];
|
||||||
/* "foobar".type = "receiveencrypted"; */
|
/* "foobar".type = "receiveencrypted"; */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user