Lots of new things
This commit is contained in:
parent
9106b33ec9
commit
7722d6fa41
6 changed files with 48 additions and 6 deletions
|
@ -34,6 +34,26 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "fw";
|
||||
openDefaultPorts = true; # Open ports in the firewall for Syncthing
|
||||
dataDir = "/home/fw"; # default location for new folders
|
||||
configDir = "/home/fw/.config/syncthing";
|
||||
settings = {
|
||||
devices = {
|
||||
"laptop" = { id = "SCW3Z3J-NQHIKXZ-T4MR7JR-YE2VL4S-RDZ7W4F-PMSPWCQ-SGF2XLQ-CDQ3SQT"; };
|
||||
"fw-iphone" = { id = "CWKHS4T-PTMW6A7-EBKRQJW-YOLUWIX-CC5IBYD-Z4LDXTO-MMRHXYM-A2FA2AQ"; };
|
||||
};
|
||||
folders = {
|
||||
"vaults" = {
|
||||
path = "/home/fw/vaults";
|
||||
devices = [ "laptop" "fw-iphone" ];
|
||||
ignorePerms = false; # Enable file permission syncing
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.11";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue