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

18 lines
552 B
Nix
Raw Normal View History

{ 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;
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;
symlinks = [ "${config.xdg.configHome}/syncthing/cert.pem" ];
2023-10-16 09:21:40 +00:00
};
2023-10-08 14:57:57 +00:00
};
}