tweak: syncthing options
This commit is contained in:
parent
d447f1623f
commit
e55baa8231
1 changed files with 22 additions and 9 deletions
|
|
@ -25,14 +25,6 @@
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
|
|
||||||
# address to serve web client on
|
|
||||||
#guiAddress = "0.0.0.0:8384";
|
|
||||||
#settings = {
|
|
||||||
#options = {};
|
|
||||||
#devices = [];
|
|
||||||
#folders = [];
|
|
||||||
#};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# user level configuration options
|
# user level configuration options
|
||||||
|
|
@ -43,7 +35,8 @@
|
||||||
|
|
||||||
# syncthing packages to include
|
# syncthing packages to include
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
syncthing
|
syncthing # syncthing package
|
||||||
|
git-sync # for sync version control
|
||||||
];
|
];
|
||||||
|
|
||||||
# user level syncthing options go here
|
# user level syncthing options go here
|
||||||
|
|
@ -52,6 +45,26 @@
|
||||||
guiAddress = "127.0.0.1:8384";
|
guiAddress = "127.0.0.1:8384";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# sync version control
|
||||||
|
services.git-sync = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
# obsidian notes vault lives here
|
||||||
|
repositories.notes = {
|
||||||
|
path = "${user-parts.user.home-directory}/Sync/Notes/";
|
||||||
|
uri = "git@codeberg.org:${user-parts.git.username}/Notes.git";
|
||||||
|
interval = 1000;
|
||||||
|
};
|
||||||
|
|
||||||
|
# password kbdx file lives here
|
||||||
|
repositories.keyring = {
|
||||||
|
path = "${user-parts.user.home-directory}/Sync/Keyring";
|
||||||
|
uri = "git@codeberg.org:${user-parts.git.username}/Keyring";
|
||||||
|
interval = 1000;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue