fixing syncthing (again)
This commit is contained in:
parent
1401d94957
commit
dc5418f3aa
1 changed files with 2 additions and 19 deletions
|
@ -5,29 +5,12 @@ with lib; {
|
||||||
|
|
||||||
clanCore.facts.services.syncthing = factsGenerator.syncthing { };
|
clanCore.facts.services.syncthing = factsGenerator.syncthing { };
|
||||||
|
|
||||||
systemd.tmpfiles.settings.syncthing = {
|
|
||||||
"/run/facts/syncthing.key".C = {
|
|
||||||
type = "C";
|
|
||||||
user = config.services.syncthing.user;
|
|
||||||
group = config.services.syncthing.group;
|
|
||||||
mode = "400";
|
|
||||||
argument = config.clanCore.facts.services.syncthing.secret."syncthing.key".path;
|
|
||||||
};
|
|
||||||
"/run/facts/syncthing.cert".C = {
|
|
||||||
type = "C";
|
|
||||||
user = config.services.syncthing.user;
|
|
||||||
group = config.services.syncthing.group;
|
|
||||||
mode = "400";
|
|
||||||
argument = config.clanCore.facts.services.syncthing.secret."syncthing.cert".path;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.syncthing = {
|
services.syncthing = {
|
||||||
#guiAddress = lib.mkDefault "${config.networking.hostName}.${ config.clan.static-hosts.topLevelDomain }:8384";
|
#guiAddress = lib.mkDefault "${config.networking.hostName}.${ config.clan.static-hosts.topLevelDomain }:8384";
|
||||||
guiAddress = lib.mkDefault "${config.networking.hostName}.private:8384";
|
guiAddress = lib.mkDefault "${config.networking.hostName}.private:8384";
|
||||||
overrideDevices = lib.mkDefault true;
|
overrideDevices = lib.mkDefault true;
|
||||||
key = "/run/facts/syncthing.key";
|
key = config.clanCore.facts.services.syncthing.secret."syncthing.key".path;
|
||||||
cert = "/run/facts/syncthing.cert";
|
cert = config.clanCore.facts.services.syncthing.secret."syncthing.cert".path;
|
||||||
settings.devices =
|
settings.devices =
|
||||||
let
|
let
|
||||||
machineDir = "${config.clanCore.clanDir}/machines";
|
machineDir = "${config.clanCore.clanDir}/machines";
|
||||||
|
|
Loading…
Reference in a new issue