patch syncthig config a bit :p
This commit is contained in:
parent
c1fa01a355
commit
e0a17f5d87
1 changed files with 25 additions and 11 deletions
|
|
@ -56,6 +56,7 @@
|
||||||
defaults.email = "zedddie@protonmail.com";
|
defaults.email = "zedddie@protonmail.com";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.fail2ban.enable = true;
|
||||||
services.nginx.enable = true;
|
services.nginx.enable = true;
|
||||||
security.acme.certs."zedddie.rs".group = "acme";
|
security.acme.certs."zedddie.rs".group = "acme";
|
||||||
users.users.nginx.extraGroups = [ "acme" ];
|
users.users.nginx.extraGroups = [ "acme" ];
|
||||||
|
|
@ -165,23 +166,36 @@
|
||||||
dataDir = "/home/vps/syncthing/";
|
dataDir = "/home/vps/syncthing/";
|
||||||
configDir = "/home/vps/syncthing/.config/syncthing";
|
configDir = "/home/vps/syncthing/.config/syncthing";
|
||||||
openDefaultPorts = true;
|
openDefaultPorts = true;
|
||||||
settings.gui = {
|
|
||||||
user = "zedddie";
|
|
||||||
};
|
|
||||||
guiPasswordFile = "/home/vps/really-secret-syncthing-gui-password";
|
guiPasswordFile = "/home/vps/really-secret-syncthing-gui-password";
|
||||||
|
overrideDevices = true;
|
||||||
|
overrideFolders = true;
|
||||||
|
settings = {
|
||||||
|
gui.user = "zedddie";
|
||||||
devices = {
|
devices = {
|
||||||
"pcnix" = {
|
"pcnix" = { id = "XLPXMR6-BPNSD5I-VTEFYCC-HBKTD3B-ZQC5M72-4QFSWPD-GW333PJ-KL5W7AK"; };
|
||||||
id = "XLPXMR6-BPNSD5I-VTEFYCC-HBKTD3B-ZQC5M72-4QFSWPD-GW333PJ-KL5W7AK";
|
"nas" = { id = "2CJHVIW-KDRSXAV-IA2UNK7-PA6YWCT-INE46KL-YO5SJWQ-YOBCTQF-OJCYNQD"; };
|
||||||
};
|
};#devices
|
||||||
};
|
|
||||||
folders = {
|
folders = {
|
||||||
"passwds" = {
|
"passwds" = {
|
||||||
path = "/home/vps/syncthing/secure_vault/";
|
path = "/home/vps/syncthing/secure_vault/";
|
||||||
devices = [ "pcnix" ];
|
devices = [
|
||||||
};
|
"pcnix"
|
||||||
};
|
"nas"
|
||||||
|
];
|
||||||
|
type = "receiveonly";
|
||||||
|
versioning = {
|
||||||
|
type = "staggered"; #
|
||||||
|
params = {
|
||||||
|
cleanInterval = "3600"; # cleanup every hour
|
||||||
|
maxAge = "31560000"; # 1 year maxage
|
||||||
|
};#params
|
||||||
|
}; #versioning
|
||||||
|
}; #passwds
|
||||||
|
}; #folders
|
||||||
|
|
||||||
|
};#settings
|
||||||
|
};#syncthing
|
||||||
|
|
||||||
};
|
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
zix = ''nix run "git+https://codeberg.org/zedddie/zix" --extra-experimental-features "nix-command flakes" --'';
|
zix = ''nix run "git+https://codeberg.org/zedddie/zix" --extra-experimental-features "nix-command flakes" --'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue