Merge branch 'main' of https://git.xenia.me.uk/xenia/nixos
This commit is contained in:
commit
f56d3bdb21
|
@ -1,11 +1,10 @@
|
||||||
{lib, ...}: let
|
{ lib, ... }:
|
||||||
|
let
|
||||||
defaultDataDir = "/var/lib/syncthing";
|
defaultDataDir = "/var/lib/syncthing";
|
||||||
deviceGroups = {
|
deviceGroups = {
|
||||||
all = ["Ion" "Legion" "Monarch" "Ronin" "Vanguard"];
|
all = [ "Ion" "Legion" "Monarch" ];
|
||||||
personal = ["Ion" "Legion" "Monarch" "Vanguard"];
|
personal = [ "Legion" "Monarch" ];
|
||||||
work = ["Ion" "Legion" "Ronin"];
|
work = [ "Ion" "Legion" "Monarch" "Ronin" ];
|
||||||
desktops = ["Legion" "Vanguard"];
|
|
||||||
mobile = ["Ion" "Legion" "Monarch" "Ronin"];
|
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
|
@ -15,67 +14,66 @@ in {
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
settings = {
|
settings = {
|
||||||
devices = {
|
devices = {
|
||||||
"Ion".id = "7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
|
"Ion".id =
|
||||||
"Legion".id = "6OX54CG-EAQMXKA-K7TXB5P-G5A27HB-52JE2FA-XNAYZU6-YMIDBXP-RKPBJQV";
|
"7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
|
||||||
"Monarch".id = "CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ";
|
"Legion".id =
|
||||||
|
"6OX54CG-EAQMXKA-K7TXB5P-G5A27HB-52JE2FA-XNAYZU6-YMIDBXP-RKPBJQV";
|
||||||
|
"Monarch".id =
|
||||||
|
"CJSUZQY-67XBLEZ-VKVHQHI-BLEUZNF-G4237AV-AW44CGH-F3JDKXU-CWT3RQZ";
|
||||||
# "Nortstar".id = "";
|
# "Nortstar".id = "";
|
||||||
"Ronin".id = "ZOL5YHK-ZZZULIE-UHGVKHW-H5E4BP7-S4CZBOX-OIZVUCV-RZUXOKA-QVBUBAJ";
|
"Ronin".id =
|
||||||
"Vanguard".id = "I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
|
"ZOL5YHK-ZZZULIE-UHGVKHW-H5E4BP7-S4CZBOX-OIZVUCV-RZUXOKA-QVBUBAJ";
|
||||||
|
"Vanguard".id =
|
||||||
|
"I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
|
||||||
};
|
};
|
||||||
folders = {
|
folders = {
|
||||||
"Archive" = {
|
"Archive" = {
|
||||||
id = "hwnqy-xzcdx";
|
id = "hwnqy-xzcdx";
|
||||||
path = lib.mkDefault "~/Documents/Archive";
|
path = lib.mkDefault "~/Documents/Archive";
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
devices = deviceGroups.desktops;
|
devices = deviceGroups.personal;
|
||||||
};
|
};
|
||||||
"Books" = {
|
"Books" = {
|
||||||
id = "zjmxy-ycmbq";
|
id = "zjmxy-ycmbq";
|
||||||
path = lib.mkDefault "~/Documents/Books";
|
path = lib.mkDefault "~/Documents/Books";
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
devices = deviceGroups.desktops;
|
devices = deviceGroups.personal;
|
||||||
};
|
};
|
||||||
"Comics" = {
|
"Comics" = {
|
||||||
id = "kc2h0-q3wot";
|
id = "kc2h0-q3wot";
|
||||||
path = lib.mkDefault "~/Documents/Comics";
|
path = lib.mkDefault "~/Documents/Comics";
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
devices = deviceGroups.desktops;
|
devices = deviceGroups.personal;
|
||||||
};
|
};
|
||||||
"Documents" = {
|
"Documents" = {
|
||||||
id = "qc6qa-bipsd";
|
id = "qc6qa-bipsd";
|
||||||
path = lib.mkDefault "~/Documents/Sync";
|
path = lib.mkDefault "~/Documents/Sync";
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
devices = deviceGroups.desktops;
|
devices = deviceGroups.personal;
|
||||||
};
|
};
|
||||||
"Exports" = {
|
"Exports" = {
|
||||||
id = "tof2e-pdtde";
|
id = "tof2e-pdtde";
|
||||||
path = lib.mkDefault "~/Documents/Exports";
|
path = lib.mkDefault "~/Documents/Exports";
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
devices = deviceGroups.desktops;
|
devices = deviceGroups.personal;
|
||||||
};
|
};
|
||||||
"Notes" = {
|
"Notes" = {
|
||||||
id = "4ggjz-5dyop";
|
id = "4ggjz-5dyop";
|
||||||
path = lib.mkDefault "~/notes";
|
path = lib.mkDefault "~/Notes";
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
devices = deviceGroups.all;
|
devices = deviceGroups.work;
|
||||||
};
|
};
|
||||||
"Pictures" = {
|
"Pictures" = {
|
||||||
id = "ziuj8-rm6dn";
|
id = "ziuj8-rm6dn";
|
||||||
path = lib.mkDefault "~/Pictures";
|
path = lib.mkDefault "~/Pictures";
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
devices = deviceGroups.personal;
|
|
||||||
};
|
|
||||||
"Tasks" = {
|
|
||||||
id = "qzdat-3zzhw";
|
|
||||||
path = lib.mkDefault "~/.local/share/task";
|
|
||||||
ignorePerms = true;
|
|
||||||
devices = deviceGroups.all;
|
devices = deviceGroups.all;
|
||||||
};
|
};
|
||||||
"Zotero" = {
|
"Zotero" = {
|
||||||
id = "huyvn-liwc9";
|
id = "huyvn-liwc9";
|
||||||
path = lib.mkDefault "~/Documents/Zotero";
|
path = lib.mkDefault "~/Documents/Zotero";
|
||||||
ignorePerms = true;
|
ignorePerms = true;
|
||||||
devices = deviceGroups.all;
|
devices = deviceGroups.work;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue