This commit is contained in:
iFargle 2024-02-13 22:59:46 +09:00
parent 540a6287e3
commit 8bbb6b05a4

View file

@ -1,21 +1,31 @@
{ pkgs, config, hostname, username, ... }: { { pkgs, config, hostname, username, ... }: {
imports = [ ../../common/services/syncthing.nix ]; imports = [ ../../common/services/syncthing.nix ];
# Set up the secrets file:
sops.secrets."syncthing-cert" = {
owner = "syncthing";
sopsFile = ../../../secrets/hosts/nixos-framework.yaml;
restartUnits = [ "syncthing.service" ];
};
sops.secrets."syncthing-key" = {
owner = "syncthing";
sopsFile = ../../../secrets/hosts/nixos-framework.yaml;
restartUnits = [ "syncthing.service" ];
};
services.syncthing = { services.syncthing = {
enable = true; enable = true;
cert = "/run/secrets/syncthing-cert";
key = "/run/secrets/syncthing-key";
user = "${username}"; user = "${username}";
configDir = "/home/${username}/Documents/.config/syncthing"; configDir = "/home/${username}/.config/syncthing";
overrideDevices = true; overrideDevices = true;
overrideFolders = true; overrideFolders = true;
settings = { settings = {
folders = { folders = {
"world-of-warcraft" = { "world-of-warcraft" = {
enable = true;
id = "ergcw-ay6yg"; id = "ergcw-ay6yg";
devices = [ devices = [ "framework-server" "win10-desktop" ];
"framework-server"
"win10-desktop"
];
path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/"; path = "/home/${username}/Games/battlenet/drive_c/Program Files (x86)/World of Warcraft/";
}; };
}; };