backup tdarr
This commit is contained in:
parent
e4bf5b735b
commit
7d52c492d4
5 changed files with 29 additions and 16 deletions
|
@ -829,16 +829,15 @@
|
|||
"locked": {
|
||||
"lastModified": 1680777934,
|
||||
"narHash": "sha256-/rwZWwylNzgZwVfaH0qgxOXurfWEK/kXzN2C+a1psCI=",
|
||||
"ref": "main",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "3dfb08abebc5ac3fea1882c63598bea48b783fcd",
|
||||
"revCount": 9,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git"
|
||||
"url": "file:///home/palo/dev/nixos/nixos-private-assets"
|
||||
},
|
||||
"original": {
|
||||
"ref": "main",
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git"
|
||||
"url": "file:///home/palo/dev/nixos/nixos-private-assets"
|
||||
}
|
||||
},
|
||||
"retiolum": {
|
||||
|
|
|
@ -56,8 +56,8 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
private_assets = {
|
||||
#url = "git+file:///home/palo/dev/nixos/nixos-private-assets";
|
||||
url = "git+ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git?ref=main";
|
||||
url = "git+file:///home/palo/dev/nixos/nixos-private-assets";
|
||||
#url = "git+ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git?ref=main";
|
||||
flake = true;
|
||||
};
|
||||
retiolum = {
|
||||
|
|
|
@ -4,13 +4,19 @@
|
|||
|
||||
custom.samba-share = {
|
||||
enable = true;
|
||||
folders = {
|
||||
#media = config.services.syncthing.folders.media.path;
|
||||
media = "/media/syncthing/media";
|
||||
};
|
||||
private.upload = {
|
||||
folder = "/media/upload";
|
||||
users = "upload";
|
||||
#folders = {
|
||||
# #media = config.services.syncthing.folders.media.path;
|
||||
# media = "/media/syncthing/media";
|
||||
#};
|
||||
private = {
|
||||
media = {
|
||||
folder = "/media/syncthing/media";
|
||||
users = "upload";
|
||||
};
|
||||
#upload = {
|
||||
# folder = "/media/upload";
|
||||
# users = "upload";
|
||||
#};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -102,6 +108,8 @@
|
|||
services.permown."/media/syncthing" = {
|
||||
owner = "syncthing";
|
||||
group = "syncthing";
|
||||
directory-mode = "770";
|
||||
file-mode = "660";
|
||||
};
|
||||
systemd.services."permown._media_syncthing" = {
|
||||
bindsTo = [ "media.mount" ];
|
||||
|
|
|
@ -6,6 +6,12 @@
|
|||
group = "syncthing";
|
||||
};
|
||||
|
||||
backup.dirs = [
|
||||
"/srv/tdarr/server"
|
||||
"/srv/tdarr/configs"
|
||||
"/srv/tdarr/logs"
|
||||
];
|
||||
|
||||
# https://docs.tdarr.io/docs/installation/docker/run-compose
|
||||
virtualisation.oci-containers = {
|
||||
backend = "podman";
|
||||
|
|
|
@ -79,11 +79,11 @@ in
|
|||
name = name;
|
||||
value = {
|
||||
browsable = "yes";
|
||||
comment = "read only share ${name}";
|
||||
comment = "read write share ${name}";
|
||||
path = folder;
|
||||
"read only" = "no";
|
||||
"valid users" = users;
|
||||
"guest ok" = "false";
|
||||
"read only" = "no";
|
||||
"guest ok" = "no";
|
||||
};
|
||||
})
|
||||
cfg.private);
|
||||
|
|
Loading…
Reference in a new issue