2024-11-08 12:50:22 +00:00
|
|
|
{systemConfig, ...}: {
|
2024-11-08 10:32:21 +00:00
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
tray.enable = true;
|
|
|
|
};
|
2024-11-08 12:50:22 +00:00
|
|
|
|
|
|
|
sops.secrets.".local/share/syncthing/cert.pem" = {
|
|
|
|
sopsFile = ./${systemConfig.networking.hostName}.yaml;
|
|
|
|
path = "${config.xdg.dataHome}/syncthing/cert.pem";
|
|
|
|
};
|
|
|
|
sops.secrets.".local/share/syncthing/https-cert.pem" = {
|
|
|
|
sopsFile = ./${systemConfig.networking.hostName}.yaml;
|
|
|
|
path = "${config.xdg.dataHome}/syncthing/https-cert.pem";
|
|
|
|
};
|
|
|
|
sops.secrets.".local/share/syncthing/key.pem" = {
|
|
|
|
sopsFile = ./${systemConfig.networking.hostName}.yaml;
|
|
|
|
path = "${config.xdg.dataHome}/syncthing/key.pem";
|
|
|
|
};
|
|
|
|
sops.secrets.".local/share/syncthing/https-key.pem" = {
|
|
|
|
sopsFile = ./${systemConfig.networking.hostName}.yaml;
|
|
|
|
path = "${config.xdg.dataHome}/syncthing/https-key.pem";
|
|
|
|
};
|
|
|
|
home.persistence.default.directories = ["${config.xdg.dataHome}/syncthing"];
|
2024-11-08 10:32:21 +00:00
|
|
|
}
|