candlekeep setup
This commit is contained in:
parent
6a21ff15b6
commit
76d35d1aef
2 changed files with 50 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
49
hosts/candlekeep/syncthing.nix
Normal file
49
hosts/candlekeep/syncthing.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue