2023-12-17 13:06:57 +01:00
|
|
|
{ config, pkgs, lib, ... }: {
|
|
|
|
|
|
|
|
#sops.secrets.syncthing_cert = { };
|
|
|
|
#sops.secrets.syncthing_key = { };
|
|
|
|
|
|
|
|
services.syncthing = {
|
|
|
|
enable = true;
|
|
|
|
openDefaultPorts = false;
|
|
|
|
user = "palo";
|
|
|
|
dataDir = "/home/palo/.syncthing";
|
|
|
|
configDir = "/home/palo/.syncthing";
|
|
|
|
#cert = toString config.sops.secrets.syncthing_cert.path;
|
|
|
|
#key = toString config.sops.secrets.syncthing_key.path;
|
|
|
|
overrideFolders = true;
|
|
|
|
settings.folders = {
|
|
|
|
|
|
|
|
# on encrypted drive
|
|
|
|
# ------------------
|
2024-04-25 11:16:49 +02:00
|
|
|
oscar_cpap = {
|
|
|
|
enable = true;
|
|
|
|
path = "/home/palo/Documents/OSCAR_Data";
|
|
|
|
};
|
2023-12-17 13:06:57 +01:00
|
|
|
password-store = {
|
|
|
|
enable = true;
|
|
|
|
path = "/home/palo/.password-store";
|
|
|
|
};
|
2024-04-17 10:38:26 +02:00
|
|
|
logseq = {
|
|
|
|
enable = true;
|
|
|
|
path = "/home/palo/logseq";
|
|
|
|
};
|
2023-12-17 13:06:57 +01:00
|
|
|
art = {
|
|
|
|
enable = true;
|
|
|
|
path = "/home/palo/art";
|
|
|
|
};
|
|
|
|
desktop = {
|
|
|
|
enable = true;
|
|
|
|
path = "/home/palo/desktop";
|
|
|
|
};
|
|
|
|
finance = {
|
|
|
|
enable = true;
|
|
|
|
path = "/home/palo/finance";
|
|
|
|
};
|
|
|
|
|
|
|
|
# no need to be encrypted
|
|
|
|
# -----------------------
|
|
|
|
books = {
|
|
|
|
enable = true;
|
|
|
|
path = "/home/palo/books";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.permown."/home/palo/music-library" = {
|
|
|
|
owner = "palo";
|
|
|
|
group = "users";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.permown."/home/palo/finance" = {
|
|
|
|
owner = "palo";
|
|
|
|
group = "syncthing";
|
|
|
|
};
|
|
|
|
}
|