add syncthing optinons for Anton
This commit is contained in:
parent
c412bffcd9
commit
d7983ac492
2 changed files with 13 additions and 7 deletions
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
common.syncthing = {
|
common.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
basePath = "/mnt/data/services/syncthing/data";
|
||||||
devices = {
|
devices = {
|
||||||
Lenni = { id = "XS6NR2Q-DHVB5G4-P43CHWR-TVBIY5A-FCIS7CU-S5UVNZA-5YPJYST-2EO2GAG"; };
|
Lenni = { id = "XS6NR2Q-DHVB5G4-P43CHWR-TVBIY5A-FCIS7CU-S5UVNZA-5YPJYST-2EO2GAG"; };
|
||||||
Puenktchen = { id = "VP3YVIM-JNSZTXV-7AS7FA2-3W5QKH6-XOWXX7N-STUR4JR-PR6SPCV-HJZMAAN"; };
|
Puenktchen = { id = "VP3YVIM-JNSZTXV-7AS7FA2-3W5QKH6-XOWXX7N-STUR4JR-PR6SPCV-HJZMAAN"; };
|
||||||
|
|
|
@ -15,8 +15,13 @@ in
|
||||||
options.id = lib.mkOption { type = lib.types.str; };
|
options.id = lib.mkOption { type = lib.types.str; };
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
basePath = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "/mnt/data";
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -31,32 +36,32 @@ in
|
||||||
folders = lib.mkDefault {
|
folders = lib.mkDefault {
|
||||||
"Documents" = {
|
"Documents" = {
|
||||||
id = "jtl6g-qjmwo";
|
id = "jtl6g-qjmwo";
|
||||||
path = "/mnt/data/Documents";
|
path = config.common.syncthing.basePath + "/Documents";
|
||||||
devices = deviceList;
|
devices = deviceList;
|
||||||
};
|
};
|
||||||
"Enpass" = lib.mkDefault {
|
"Enpass" = lib.mkDefault {
|
||||||
id = "ciksm-xsw4m";
|
id = "ciksm-xsw4m";
|
||||||
path = "/mnt/data/Enpass";
|
path = config.common.syncthing.basePath + "/Enpass";
|
||||||
devices = deviceList;
|
devices = deviceList;
|
||||||
};
|
};
|
||||||
"Pictures" = lib.mkDefault {
|
"Pictures" = lib.mkDefault {
|
||||||
id = "po4qj-q9t0t";
|
id = "po4qj-q9t0t";
|
||||||
path = "/mnt/data/Pictures";
|
path = config.common.syncthing.basePath + "/Pictures";
|
||||||
devices = deviceList;
|
devices = deviceList;
|
||||||
};
|
};
|
||||||
"Videos" = lib.mkDefault {
|
"Videos" = lib.mkDefault {
|
||||||
id = "4wqf5-xasng";
|
id = "4wqf5-xasng";
|
||||||
path = "/mnt/data/Videos";
|
path = config.common.syncthing.basePath + "/Videos";
|
||||||
devices = deviceList;
|
devices = deviceList;
|
||||||
};
|
};
|
||||||
"Notes" = lib.mkDefault {
|
"Notes" = lib.mkDefault {
|
||||||
id = "oc61n-iewgj";
|
id = "oc61n-iewgj";
|
||||||
path = "/mnt/data/Notes";
|
path = config.common.syncthing.basePath + "/Notes";
|
||||||
devices = deviceList;
|
devices = deviceList;
|
||||||
};
|
};
|
||||||
"Music" = lib.mkDefault {
|
"Music" = lib.mkDefault {
|
||||||
id = "xxh8a-3y2tq";
|
id = "xxh8a-3y2tq";
|
||||||
path = "/mnt/data/Music";
|
path = config.common.syncthing.basePath + "/Music";
|
||||||
devices = deviceList;
|
devices = deviceList;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue