nixos-laptop/modules/home-manager/syncthing.nix

16 lines
433 B
Nix
Raw Normal View History

2024-06-09 20:00:47 +00:00
{ config, flake, ... }: {
2023-10-08 14:57:57 +00:00
config = {
services.syncthing.enable = true;
2023-10-16 09:21:40 +00:00
homeage.file."syncthing-key.pem" = {
2024-06-09 20:00:47 +00:00
source = "${flake}/secrets/syncthing-key.pem.age";
symlinks = [ "${config.xdg.configHome}/syncthing/key.pem" ];
2023-10-16 09:21:40 +00:00
};
homeage.file."syncthing-cert.pem" = {
2024-06-09 20:00:47 +00:00
source = "${flake}/secrets/syncthing-cert.pem.age";
symlinks = [ "${config.xdg.configHome}/syncthing/cert.pem" ];
2023-10-16 09:21:40 +00:00
};
2023-10-08 14:57:57 +00:00
};
}