add flix syncthing part

This commit is contained in:
Ingolf Wagner 2024-05-30 09:33:55 +02:00
parent 3714de0a16
commit 22eb918cd0
Signed by: palo
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 # needs to be on encrypted drives
# ------------------------------- # -------------------------------
oscar_cpap = {
enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/oscar_cpap";
devices = [ "chungus" "cream" "cherry" ];
};
audiobooks = { audiobooks = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/audiobooks"; path = lib.mkDefault "/tmp/audiobooks";
devices = [ "chungus" "orbi" ]; 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 = { logseq = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/logseq"; path = lib.mkDefault "/tmp/logseq";
@ -71,14 +94,10 @@ with lib; {
path = lib.mkDefault "/tmp/lectures"; path = lib.mkDefault "/tmp/lectures";
devices = [ "chungus" "orbi" ]; devices = [ "chungus" "orbi" ];
}; };
books = { oscar_cpap = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/books"; path = lib.mkDefault "/tmp/oscar_cpap";
devices = [ "chungus" "robi" "cream" "cherry" ]; devices = [ "chungus" "cream" "cherry" ];
versioning = {
type = "simple";
params.keep = "2";
};
}; };
password-store = { password-store = {
enable = lib.mkDefault false; enable = lib.mkDefault false;
@ -89,30 +108,16 @@ with lib; {
params.keep = "10"; 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 # todo remove if zfs is is used
nextcloud_backup = { #nextcloud_backup = {
enable = lib.mkDefault false; # enable = lib.mkDefault false;
path = lib.mkDefault "/tmp/lost-fotos"; # path = lib.mkDefault "/tmp/lost-fotos";
devices = [ "chungus" "robi" ]; # devices = [ "chungus" "robi" ];
versioning = { # versioning = {
type = "simple"; # type = "simple";
params.keep = "2"; # params.keep = "2";
}; # };
}; #};
}; };
}; };

View file

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

View file

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