2025.04.30-20:50
This commit is contained in:
36
nixos_24.11_cinnamon/config/syncthing.nix
Normal file
36
nixos_24.11_cinnamon/config/syncthing.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable Syncthing
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
openDefaultPorts = true;
|
||||
guiAddress = "127.0.0.1:8384";
|
||||
user = "zulumann";
|
||||
group = "users";
|
||||
configDir = "/home/zulumann/.config/syncthing";
|
||||
dataDir = "/home/zulumann";
|
||||
overrideDevices = false;
|
||||
overrideFolders = false;
|
||||
settings.devices = {
|
||||
"Syncthing-Server" = { id = "2YNMVUC-HCUVYV4-C7ZJJ72-HQJSFBF-TOO6VPG-QYYIBZA-X3JC4MA-5WKEGA4"; };
|
||||
};
|
||||
|
||||
settings.versioning = {
|
||||
type = "staggered";
|
||||
params = {
|
||||
cleanInterval = "3600"; # 1 hour in seconds
|
||||
maxAge = "15552000"; # 180 days in seconds
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.syncthing.settings.gui = {
|
||||
user = "zulumann";
|
||||
password = "he_lu@1970";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
#qsyncthingtray
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user