add flix syncthing part

This commit is contained in:
Ingolf Wagner 2024-05-30 09:33:55 +02:00
parent 3714de0a16
commit 22eb918cd0
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 52 additions and 37 deletions

View file

@ -51,16 +51,39 @@ with lib; {
# needs to be on encrypted drives
# -------------------------------
oscar_cpap = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/oscar_cpap";
devices = [ "chungus" "cream" "cherry" ];
};
audiobooks = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/audiobooks";
devices = [ "chungus" "orbi" ];
};
books = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/books";
devices = [ "chungus" "robi" "cream" "cherry" ];
versioning = {
type = "simple";
params.keep = "2";
};
};
desktop = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/desktop";
devices = [ "chungus" "cream" "mobi" "bobi" "cherry" ];
};
finance = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/finance";
devices = [ "chungus" "cream" "mobi" "bobi" "cherry" ];
versioning = {
type = "simple";
params.keep = "10";
};
};
flix = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/flix";
devices = [ "chungus" "orbi" ];
};
logseq = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/logseq";
@ -71,14 +94,10 @@ with lib; {
path = lib.mkDefault "/tmp/lectures";
devices = [ "chungus" "orbi" ];
};
books = {
oscar_cpap = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/books";
devices = [ "chungus" "robi" "cream" "cherry" ];
versioning = {
type = "simple";
params.keep = "2";
};
path = lib.mkDefault "/tmp/oscar_cpap";
devices = [ "chungus" "cream" "cherry" ];
};
password-store = {
enable = lib.mkDefault false;
@ -89,30 +108,16 @@ with lib; {
params.keep = "10";
};
};
desktop = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/desktop";
devices = [ "chungus" "cream" "mobi" "bobi" "cherry" ];
};
finance = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/finance";
devices = [ "chungus" "cream" "mobi" "bobi" ];
versioning = {
type = "simple";
params.keep = "10";
};
};
# todo remove if zfs is is used
nextcloud_backup = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/lost-fotos";
devices = [ "chungus" "robi" ];
versioning = {
type = "simple";
params.keep = "2";
};
};
#nextcloud_backup = {
# enable = lib.mkDefault false;
# path = lib.mkDefault "/tmp/lost-fotos";
# devices = [ "chungus" "robi" ];
# versioning = {
# type = "simple";
# params.keep = "2";
# };
#};
};
};

View file

@ -64,6 +64,11 @@
type = "sendonly";
path = "/media/lectures";
};
flix = {
enable = true;
type = "sendonly";
path = "/syncthing/flix";
};
};
};

View file

@ -15,11 +15,16 @@
settings.folders = {
audiobooks = {
enable = true;
path = "/media/synchthing/audiobooks";
path = "/media/syncthing/audiobooks";
};
lectures = {
enable = true;
path = "/media/synchthing/lectures";
path = "/media/syncthing/lectures";
};
flix = {
enable = true;
type = "receiveonly";
path = "/media/syncthing/flix";
};
};
};