Add elfeed database to syncthing
Update syncthing definition to use dataDir in folder path, reduce redefinition by just changing dataDir if they should be somewhere else
This commit is contained in:
parent
7d66b5ea82
commit
8a76c27dae
|
@ -29,14 +29,7 @@ in {
|
|||
};
|
||||
};
|
||||
services = {
|
||||
syncthing = let dataDir = "/var/lib/syncthing";
|
||||
in {
|
||||
inherit dataDir;
|
||||
settings.folders = {
|
||||
"Pictures".path = dataDir + "/Pictures";
|
||||
"Zotero".path = dataDir + "/Zotero";
|
||||
};
|
||||
};
|
||||
syncthing.dataDir = "/var/lib/syncthing";
|
||||
openvpn = {
|
||||
restartAfterSleep = true;
|
||||
servers.xenia.config = ''
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, user, ... }:
|
||||
let devices = [ "Ion" "Legion" "Northstar" "Ronin" "Vanguard" ];
|
||||
in {
|
||||
services.syncthing = {
|
||||
services.syncthing = rec {
|
||||
inherit user;
|
||||
inherit (config.users.users.${user}) group;
|
||||
enable = true;
|
||||
|
@ -22,17 +22,23 @@ in {
|
|||
"I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
|
||||
};
|
||||
folders = {
|
||||
"Pictures" = {
|
||||
id = "ziuj8-rm6dn";
|
||||
path = lib.mkDefault "~/Pictures";
|
||||
"Elfeed" = {
|
||||
inherit devices;
|
||||
id = "hnnxy-lb5af";
|
||||
path = "${dataDir}/.elfeed";
|
||||
ignorePerms = true;
|
||||
};
|
||||
"Pictures" = {
|
||||
inherit devices;
|
||||
id = "ziuj8-rm6dn";
|
||||
path = "${dataDir}/Pictures";
|
||||
ignorePerms = true;
|
||||
devices = devices;
|
||||
};
|
||||
"Zotero" = {
|
||||
inherit devices;
|
||||
id = "huyvn-liwc9";
|
||||
path = lib.mkDefault "~/Documents/Zotero";
|
||||
path = "${dataDir}/Documents/Zotero";
|
||||
ignorePerms = true;
|
||||
devices = devices;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue