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

18 lines
546 B
Nix
Raw Normal View History

2023-11-05 17:49:51 +00:00
{config, ...}: {
2023-10-08 14:57:57 +00:00
config = {
services.syncthing.enable = true;
xdg.configFile."syncthing/config.xml".source = ./syncthing.xml;
xdg.userDirs.music = "${config.home.homeDirectory}/sync/Music";
2023-10-16 09:21:40 +00:00
homeage.file."syncthing-key.pem" = {
source = ../../secrets/syncthing-key.pem.age;
2023-11-05 17:49:51 +00:00
symlinks = ["${config.xdg.configHome}/syncthing/key.pem"];
2023-10-16 09:21:40 +00:00
};
homeage.file."syncthing-cert.pem" = {
source = ../../secrets/syncthing-cert.pem.age;
2023-11-05 17:49:51 +00:00
symlinks = ["${config.xdg.configHome}/syncthing/cert.pem"];
2023-10-16 09:21:40 +00:00
};
2023-10-08 14:57:57 +00:00
};
}