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