39 lines
1.4 KiB
Nix
39 lines
1.4 KiB
Nix
{ pkgs, config, hostname, username, ... }: {
|
|
imports = [ ../../common/services/syncthing.nix ];
|
|
|
|
# Set up the secrets file:
|
|
sops.secrets."syncthing-cert" = {
|
|
owner = "root";
|
|
sopsFile = ../../../secrets/hosts/nixos-framework.yaml;
|
|
restartUnits = [ "syncthing.service" ];
|
|
};
|
|
sops.secrets."syncthing-key" = {
|
|
owner = "root";
|
|
sopsFile = ../../../secrets/hosts/nixos-framework.yaml;
|
|
restartUnits = [ "syncthing.service" ];
|
|
};
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
cert = "/run/secrets/syncthing-cert";
|
|
key = "/run/secrets/syncthing-key";
|
|
user = "${username}";
|
|
configDir = "/home/${username}/.config/syncthing";
|
|
overrideDevices = true;
|
|
overrideFolders = true;
|
|
settings = {
|
|
folders = {
|
|
"kenshi-saves" = {
|
|
id = "kenshi";
|
|
path = "/home/${username}/.steam/steam/steamapps/compatdata/233860/pfx/drive_c/users/steamuser/AppData/Local/kenshi/";
|
|
devices = [ "framework-server" "win10-desktop" ];
|
|
};
|
|
"world-of-warcraft" = {
|
|
id = "ergcw-ay6yg";
|
|
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/";
|
|
devices = [ "framework-server" "win10-desktop" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|