Secrets and syncthing
This commit is contained in:
43
syncthing.nix
Normal file
43
syncthing.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ config, ... }:
|
||||
|
||||
let
|
||||
secretFile = builtins.WriteFile "secrets.nix" config.age.secrets.secret.path;
|
||||
secrets = import ./secrets.nix;
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
# openDefaultPorts = true;
|
||||
|
||||
# syncthing
|
||||
|
||||
settings.gui = {
|
||||
user = "pager";
|
||||
password = "roundabout";
|
||||
};
|
||||
|
||||
settings.devices = {
|
||||
"tin" = { id = config.age.secrets.syncthing_tin.path; };
|
||||
"nicrosil" = { id = config.age.secrets.syncthing_tin.path; };
|
||||
};
|
||||
|
||||
settings.folders = {
|
||||
"VRC Pictures" = {
|
||||
path = "/home/abby/Pictures/VRChat";
|
||||
id = "7q62w-jsps5";
|
||||
type = "sendreceive";
|
||||
devices = [ "tin" "nicrosil" ];
|
||||
};
|
||||
"VRC Avatars" = {
|
||||
path = "/home/abby/projects/VRC Avatars";
|
||||
id = "jdfra-eqoig";
|
||||
type = "sendreceive";
|
||||
devices = [ "tin" "nicrosil" ];
|
||||
};
|
||||
"Basis Avatars" = {
|
||||
path = "/home/abby/projects/Basis Avatars";
|
||||
id = "qzla2-jxhox";
|
||||
type = "sendreceive";
|
||||
devices = [ "tin" "nicrosil" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user