candlekeep setup

This commit is contained in:
gwg313 2024-02-18 14:56:56 -05:00
parent 6a21ff15b6
commit 76d35d1aef
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
2 changed files with 50 additions and 0 deletions

View file

@ -33,6 +33,7 @@
./kernel.nix ./kernel.nix
./sysctl.nix ./sysctl.nix
./earlyoom.nix ./earlyoom.nix
./syncthing.nix
# Or modules from other flakes (such as nixos-hardware): # Or modules from other flakes (such as nixos-hardware):
# inputs.hardware.nixosModules.common-cpu-amd # inputs.hardware.nixosModules.common-cpu-amd

View file

@ -0,0 +1,49 @@
{
config,
user,
...
}: {
services.syncthing = {
enable = true;
dataDir = "/home/gwg313";
openDefaultPorts = true;
configDir = "/home/gwg313/.config/syncthing";
user = "gwg313";
group = "users";
guiAddress = "127.0.0.1:8384";
overrideDevices = true;
overrideFolders = true;
settings = {
devices = {
"grymforge" = {id = "REALLY-LONG-LAPTOP-SYNCTHING-KEY-HERE";};
};
folders = {
"repos" = {
path = "/home/gwg313/repos";
devices = ["grymforge"];
versioning = {
type = "staggered";
params = {
cleanInterval = "3600";
maxAge = "15768000";
};
};
};
"documents" = {
path = "/home/gwg313/Documents";
devices = ["grymforge"];
versioning = {
type = "staggered";
params = {
cleanInterval = "3600";
maxAge = "15768000";
};
};
};
};
};
};
}