63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
|
|
services.syncthing = {
|
|
enable = true;
|
|
openDefaultPorts = false;
|
|
user = "palo";
|
|
group = "users";
|
|
dataDir = "/home/palo/.syncthing";
|
|
configDir = "/home/palo/.syncthing";
|
|
overrideFolders = true;
|
|
settings.folders = {
|
|
|
|
# on encrypted drive
|
|
# ------------------
|
|
oscar_cpap = {
|
|
enable = true;
|
|
path = "/home/palo/Documents/OSCAR_Data";
|
|
};
|
|
password-store = {
|
|
enable = true;
|
|
path = "/home/palo/.password-store";
|
|
};
|
|
logseq = {
|
|
enable = true;
|
|
path = "/home/palo/logseq";
|
|
};
|
|
#private = {
|
|
# enable = true;
|
|
# path = "/home/palo/private";
|
|
#};
|
|
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";
|
|
};
|
|
}
|