syncthing: add yncthing-resolve-conflicts script
This commit is contained in:
parent
a37e4720ca
commit
17789ce55d
3 changed files with 53 additions and 1 deletions
|
|
@ -1,10 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
cfg = config.services.syncthing;
|
||||
guiPort = 8384;
|
||||
transferPort = 22000;
|
||||
fqdn = "sync.local";
|
||||
# TODO: look into https://github.com/dschrempf/syncthing-resolve-conflicts
|
||||
syncthing-resolve-conflicts = pkgs.callPackage ./syncthing-resolve-conflicts.nix { };
|
||||
|
||||
user = "sid";
|
||||
dirs = [
|
||||
|
|
@ -81,6 +88,10 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
syncthing-resolve-conflicts
|
||||
];
|
||||
|
||||
sops.secrets."syncthing/gui-pw" = {
|
||||
owner = cfg.user;
|
||||
group = cfg.group;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue