add Programming to Syncthing
This commit is contained in:
parent
b59e027503
commit
e1eef0c5b6
1 changed files with 10 additions and 4 deletions
|
|
@ -5,6 +5,7 @@
|
|||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.horseman.network.syncthing;
|
||||
username = config.horseman.username;
|
||||
in {
|
||||
options = {
|
||||
horseman.network.syncthing = {
|
||||
|
|
@ -15,10 +16,10 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "horseman";
|
||||
user = username;
|
||||
group = "users";
|
||||
dataDir = "/home/horseman";
|
||||
configDir = "/home/horseman/.config/syncthing";
|
||||
dataDir = "/home/${username}";
|
||||
configDir = "/home/${username}/.config/syncthing";
|
||||
overrideDevices = true;
|
||||
# overrideFolders = true;
|
||||
settings = {
|
||||
|
|
@ -45,7 +46,12 @@ in {
|
|||
folders = {
|
||||
"Documents" = {
|
||||
id = "documentFolder";
|
||||
path = "/home/horseman/Documents";
|
||||
path = "/home/${username}/Documents";
|
||||
devices = ["luna" "terra" "solis"];
|
||||
};
|
||||
"Programming" = {
|
||||
id = "programmingFolder";
|
||||
path = "/home/${username}/Programming";
|
||||
devices = ["luna" "terra" "solis"];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue